| Index: src/js/messages.js
|
| diff --git a/src/js/messages.js b/src/js/messages.js
|
| index 0d1aa29a0e894c90e3f02cc0f1da25651e4cad46..f22a6252b5c0a0b6ae6165e89bc51d066f866e63 100644
|
| --- a/src/js/messages.js
|
| +++ b/src/js/messages.js
|
| @@ -456,8 +456,8 @@ function GetStackTraceLine(recv, fun, pos, isGlobal) {
|
| function CallSite(receiver, fun, pos, strict_mode) {
|
| // For wasm frames, receiver is the wasm object and fun is the function index
|
| // instead of an actual function.
|
| - if (!IS_FUNCTION(fun) && !IS_NUMBER(fun)) {
|
| - throw MakeTypeError(kCallSiteExpectsFunction, typeof fun);
|
| + if (!IS_FUNCTION(fun) && !%IsWasmObject(receiver)) {
|
| + throw MakeTypeError(kCallSiteExpectsFunction, typeof receiver, typeof fun);
|
| }
|
|
|
| if (IS_UNDEFINED(new.target)) {
|
|
|