mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 14:35:30 +02:00
Add test for setting a module namespace object's prototype to null (#805)
The behavior changed from returning false to true in https://github.com/tc39/ecma262/commit/13906140a
This commit is contained in:
parent
03453d6098
commit
b5edd1256c
@ -0,0 +1,14 @@
|
||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-module-namespace-exotic-objects-setprototypeof-v
|
||||
description: >
|
||||
The [[SetPrototypeOf]] internal method returns `true` if
|
||||
passed `null`
|
||||
flags: [module]
|
||||
---*/
|
||||
|
||||
import * as ns from './set-prototype-of-null.js';
|
||||
|
||||
assert.sameValue(typeof Object.setPrototypeOf, 'function');
|
||||
assert.sameValue(ns, Object.setPrototypeOf(ns, null);
|
Loading…
x
Reference in New Issue
Block a user