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

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

let obj = {f: 1254};

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