Skip to content
Snippets Groups Projects
Commit b5edd125 authored by Adam Klein's avatar Adam Klein Committed by Tom Care
Browse files

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
parent 03453d60
No related branches found
No related tags found
No related merge requests found
// 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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment