summaryrefslogtreecommitdiff
path: root/deps/v8/test/message/mjsunit/success/assert-promise-result-resolves.js
blob: 105aa2abd5e9a3a2c5e3c0aa571ceedf0af274d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2018 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.

// Flags: --no-stress-opt

d8.file.execute("test/mjsunit/mjsunit.js");

let obj = {f: 1254};

assertPromiseResult(Promise.resolve(obj), (o) => {print(o.f)});