mirror of
https://github.com/nodejs/node.git
synced 2025-05-16 05:16:21 +00:00

PR-URL: https://github.com/nodejs/node/pull/28918 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
33 lines
945 B
JavaScript
33 lines
945 B
JavaScript
// Copyright 2019 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// This file is executed separately before the correctness test case. Add here
|
|
// checking of global properties that should never differ in any configuration.
|
|
// A difference found in the prints below will prevent any further correctness
|
|
// comparison for the selected configurations to avoid flooding bugs.
|
|
|
|
print("https://crbug.com/932656");
|
|
print(Object.getOwnPropertyNames(this));
|
|
|
|
print("https://crbug.com/935800");
|
|
(function () {
|
|
function foo() {
|
|
"use asm";
|
|
function baz() {}
|
|
return {bar: baz};
|
|
}
|
|
print(Object.getOwnPropertyNames(foo().bar));
|
|
})();
|
|
|
|
print("https://crbug.com/985154");
|
|
(function () {
|
|
"use strict";
|
|
function foo() {
|
|
"use asm";
|
|
function baz() {}
|
|
return {bar: baz};
|
|
}
|
|
print(Object.getOwnPropertyNames(foo().bar));
|
|
})();
|