File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,5 @@ primordials.SafePromise = makeSafe(
124
124
copyPrototype ( original . prototype , primordials , `${ name } Prototype` ) ;
125
125
} ) ;
126
126
127
- // Helper caried over from js2c_macros: exits process and prints debug message
128
- // iff node_debug_lib flag is set.
129
- primordials . CHECK = function ( x ) {
130
- if ( process . config . variables . node_debug_lib === false ) return ;
131
- if ( ! x ) {
132
- ( process . _rawDebug ( 'CHECK: x == true' ) , process . abort ( ) ) ;
133
- }
134
- } ;
135
-
136
127
Object . setPrototypeOf ( primordials , null ) ;
137
128
Object . freeze ( primordials ) ;
Original file line number Diff line number Diff line change 2
2
3
3
const {
4
4
ArrayIsArray,
5
- CHECK ,
6
5
ObjectCreate,
7
6
ObjectDefineProperty,
8
7
Symbol,
@@ -59,6 +58,15 @@ const kContext = Symbol('kContext');
59
58
const kPerContextModuleId = Symbol ( 'kPerContextModuleId' ) ;
60
59
const kLink = Symbol ( 'kLink' ) ;
61
60
61
+ // Helper caried over from js2c_macros: exits process and prints debug message
62
+ // iff node_debug_lib flag is set.
63
+ function CHECK ( x ) {
64
+ if ( process . config . variables . node_debug_lib === false ) return ;
65
+ if ( ! x ) {
66
+ ( process . _rawDebug ( 'CHECK: x == true' ) , process . abort ( ) ) ;
67
+ }
68
+ }
69
+
62
70
class Module {
63
71
constructor ( options ) {
64
72
emitExperimentalWarning ( 'VM Modules' ) ;
You can’t perform that action at this time.
0 commit comments