Chromium Code Reviews| Index: test/mjsunit/wasm/wasm-constants.js |
| diff --git a/test/mjsunit/wasm/wasm-constants.js b/test/mjsunit/wasm/wasm-constants.js |
| index 319cadc0237468412bc0f0d5842cbe38ba663810..5f0abb8325b082f17340825ad625eeea4886d750 100644 |
| --- a/test/mjsunit/wasm/wasm-constants.js |
| +++ b/test/mjsunit/wasm/wasm-constants.js |
| @@ -312,6 +312,7 @@ var kTrapRemByZero = 4; |
| var kTrapFloatUnrepresentable = 5; |
| var kTrapFuncInvalid = 6; |
| var kTrapFuncSigMismatch = 7; |
| +var kTrapMemAllocationFail = 8; |
|
ahaas
2016/06/24 11:10:15
where do you use this trap?
gdeepti
2016/06/27 19:55:12
Added here to keep wasm errors in sync with messag
|
| var kTrapMsgs = [ |
| "unreachable", |
| @@ -321,7 +322,8 @@ var kTrapMsgs = [ |
| "remainder by zero", |
| "integer result unrepresentable", |
| "invalid function", |
| - "function signature mismatch" |
| + "function signature mismatch", |
| + "failed to allocate memory" |
| ]; |
| function assertTraps(trap, code) { |