v8/tools/clusterfuzz/v8_suppressions.js
Michael Achenbach 22fb961b70 [foozzie] Rename folder to account for new clusterfuzz configs
We'll soon also host other configurations for general fuzzing, not only
correctness fuzzing in the new tools/clusterfuzz folder.

TBR=yangguo@chromium.org

Bug: chromium:813833
Change-Id: Icd966bfec91cc547522bad5d1a842500b554754f
Reviewed-on: https://chromium-review.googlesource.com/930331
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51480}
2018-02-22 17:42:39 +00:00

34 lines
1002 B
JavaScript

// Copyright 2016 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.
// This file is loaded before each correctness test case and after v8_mock.js.
// You can temporarily change JS behavior here to silence known problems.
// Please refer to a bug in a comment and remove the suppression once the
// problem is fixed.
// Suppress http://crbug.com/662429
(function () {
var oldMathPow = Math.pow
Math.pow = function(a, b){
if (b < 0) {
return 0.000017;
} else {
return oldMathPow(a, b);
}
}
})();
// Suppress http://crbug.com/693426
(function () {
var oldMathPow = Math.pow
Math.pow = function(a, b){
var s = "" + oldMathPow(a, b)
// Low tech precision mock. Limit digits in string representation.
// The phrases Infinity and NaN don't match the split("e").
s = s.split("e");
s[0] = s[0].substr(0, 17);
return parseFloat(s.join("e"));
}
})();