mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
00c222593e
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com> PR-URL: https://github.com/nodejs/node/pull/44004 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
14 lines
394 B
JavaScript
14 lines
394 B
JavaScript
// Flags: --experimental-permission --allow-fs-read=*
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
common.skipIfWorker();
|
|
const assert = require('assert');
|
|
|
|
// This test ensures that the experimental message is emitted
|
|
// when using permission system
|
|
|
|
process.on('warning', common.mustCall((warning) => {
|
|
assert.match(warning.message, /Permission is an experimental feature/);
|
|
}, 1));
|