cb944691e5
This adds reporting of linking failures (i.e. module instantiation) similar to the existing reporting for validation failures. Note that the messages in question are deterministic and can be tested. R=clemensh@chromium.org Change-Id: Ibecebefb86f1d878f626702c05fd0cb21189dc2a Reviewed-on: https://chromium-review.googlesource.com/507488 Commit-Queue: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Clemens Hammacher <clemensh@chromium.org> Reviewed-by: Jochen Eisinger <jochen@chromium.org> Cr-Commit-Position: refs/heads/master@{#45421}
16 lines
431 B
JavaScript
16 lines
431 B
JavaScript
// Copyright 2017 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: --validate-asm --no-stress-opt --no-stress-validate-asm --no-suppress-asm-messages
|
|
|
|
function Module(stdlib, foreign, heap) {
|
|
"use asm"
|
|
var pi = stdlib.Math.PI;
|
|
function f() {
|
|
return +pi;
|
|
}
|
|
return { f:f };
|
|
}
|
|
Module({ Math: { PI:23 }}).f();
|