Minor test cleanup. [ci skip]

This commit is contained in:
John-David Dalton
2014-01-25 10:19:42 -08:00
parent 0446a1b3a8
commit af55978918
2 changed files with 8 additions and 8 deletions

View File

@@ -22,8 +22,6 @@
var setProperty = (function() {
var _defineProperty = Object.defineProperty;
return function(object, key, value) {
// avoid a bug where overwriting non-enumerable built-ins makes them enumerable
// https://code.google.com/p/v8/issues/detail?id=1623
try {
_defineProperty(object, key, {
'configurable': true,
@@ -38,9 +36,6 @@
}());
function addBizarroMethods() {
// add extensions
Function.prototype._method = function() {};
// allow bypassing native checks
setProperty(Function.prototype, 'toString', (function() {
function fnToString() {
@@ -54,6 +49,9 @@
return fnToString;
}()));
// add extensions
Function.prototype._method = function() {};
// set bad shims
setProperty(Array, '_isArray', Array.isArray);
setProperty(Array, 'isArray', function() {});