From 084e0d19b943a4400969ef6998e3a82d169aa07c Mon Sep 17 00:00:00 2001 From: k1r0s Date: Thu, 7 Dec 2017 11:50:43 +0100 Subject: [PATCH] fix: fix unreachable async callback invokation by several transpilers 'this' to be deprecated in the next release due to inconsistent API --- src/core/CallStackIterator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/CallStackIterator.ts b/src/core/CallStackIterator.ts index 038ba9e1..18e9445e 100644 --- a/src/core/CallStackIterator.ts +++ b/src/core/CallStackIterator.ts @@ -164,6 +164,6 @@ export class CallStackIterator { .replace(/(["'])(?:(?=(\\?))\2.)*?\1/g, "") // Remove comments .replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(\/\/.*)/g, "") - .match(/[a-zA-Z$]\.next[\W]/g) + .match(/.next/); } }