Browse Source

kernel: Simplify wrappedError.

Herbert Vojčík 7 years ago
parent
commit
8655fe9786
1 changed files with 1 additions and 3 deletions
  1. 1 3
      support/kernel-runtime.js

+ 1 - 3
support/kernel-runtime.js

@@ -362,11 +362,9 @@ define(function () {
                 errorWrapper._signal();
                 errorWrapper._signal();
             } catch (ex) {
             } catch (ex) {
             }
             }
-            var context = st.getThisContext();
             if (isRangeError(error)) {
             if (isRangeError(error)) {
-                stubContextStack(context);
+                stubContextStack(errorWrapper.context);
             }
             }
-            errorWrapper._context_(context);
             return errorWrapper;
             return errorWrapper;
         }
         }