eval-rqstd-once_FIXTURE.js (440B)
1 // |reftest| skip -- not a test file 2 // Copyright (C) 2016 the V8 project authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 export default null; 6 var global = Function('return this;')(); 7 8 if (global.test262) { 9 throw new Error('Module was evaluated more than once.'); 10 } 11 12 global.test262 = 262; 13 14 if (global.test262 !== 262) { 15 throw new Error('Module was unable to signal evaluation.'); 16 }