Strict mode Failing
Expected no error, got ESHostError: Expected SameValue(«true», «false») to be true
non-Strict mode Failing
Expected no error, got ESHostError: Expected SameValue(«true», «false») to be true
Features:
- ∅
Expected no error, got ESHostError: Expected SameValue(«true», «false») to be true
Expected no error, got ESHostError: Expected SameValue(«true», «false») to be true
// Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 14.2 description: > Arrow functions are like functions, except they throw when using the "new" operator on them. ---*/ assert.sameValue(typeof (() => {}), "function"); assert.sameValue(Object.getPrototypeOf(() => {}), Function.prototype); assert.sameValue("prototype" in (() => {}), false);