cptn-nrml.js (716B)
1 // Copyright (C) 2016 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 es6id: 13.11.7 5 description: Statement completion value when body returns a normal completion 6 info: | 7 WithStatement : with ( Expression ) Statement 8 9 [...] 10 8. Let C be the result of evaluating Statement. 11 9. Set the running execution context’s Lexical Environment to oldEnv. 12 10. If C.[[type]] is normal and C.[[value]] is empty, return 13 NormalCompletion(undefined). 14 11. Return Completion(C). 15 flags: [noStrict] 16 ---*/ 17 18 assert.sameValue(eval('1; with({}) { }'), undefined); 19 assert.sameValue(eval('2; with({}) { 3; }'), 3); 20 21 reportCompare(0, 0);