瀏覽代碼

kernel: isRangeError => shouldBeStubbed

Herbert Vojčík 7 年之前
父節點
當前提交
884bf23124
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      support/kernel-runtime.js

+ 2 - 2
support/kernel-runtime.js

@@ -368,7 +368,7 @@ define(function () {
                 errorWrapper._signal();
             } catch (ex) {
             }
-            if (isRangeError(error)) {
+            if (shouldBeStubbed(error)) {
                 stubContextStack(errorWrapper.context);
             }
             return errorWrapper;
@@ -389,7 +389,7 @@ define(function () {
             }
         }
 
-        function isRangeError (error) {
+        function shouldBeStubbed (error) {
             return error instanceof RangeError;
         }