Browse Source

Use `instanceof RangeError` in boot.js

Nicolas Petton 11 years ago
parent
commit
f9422ef056
1 changed files with 1 additions and 1 deletions
  1. 1 1
      support/boot.js

+ 1 - 1
support/boot.js

@@ -933,7 +933,7 @@ function RuntimeBrik(brikz, st) {
 	}
 
 	function isRangeError(error) {
-		return error.constructor === RangeError;
+		return error instanceof RangeError;
 	}