test262/implementation-contributed/javascriptcore/modules/execution-order-depth/2.js

7 lines
152 B
JavaScript

import "./1.js";
var global = (Function("return this"))();
if (global.count !== 1)
throw new Error(`bad value ${global.count}`);
global.count = 2;