File tree Expand file tree Collapse file tree 9 files changed +9
-18
lines changed
app/src/main/assets/internal
build-tools/jsparser/tests/cases
decorated_double_assignment_ts/internal
decorated_extends_ts/internal
directory_with_dashes/internal
extends_with_interfaces_ts/internal
extends_with_interfaces/internal
file_names_with_dots/internal Expand file tree Collapse file tree 9 files changed +9
-18
lines changed Original file line number Diff line number Diff line change 48
48
} ;
49
49
50
50
var __extends = function ( Child , Parent ) {
51
- const NATIVE_CODE_REGEX = / \{ \s * \[ n a t i v e c o d e \] \s * \} / g;
52
- var extendNativeClass = ! ! Parent . extend && NATIVE_CODE_REGEX . test ( Parent . extend . toString ( ) ) ;
51
+ var extendNativeClass = ! ! Parent . extend && ( Parent . extend . toString ( ) . indexOf ( "[native code]" ) > - 1 ) ;
53
52
if ( ! extendNativeClass ) {
54
53
__extends_ts ( Child , Parent ) ;
55
54
return ;
Original file line number Diff line number Diff line change 48
48
} ;
49
49
50
50
var __extends = function ( Child , Parent ) {
51
- const NATIVE_CODE_REGEX = / \{ \s * \[ n a t i v e c o d e \] \s * \} / g;
52
- var extendNativeClass = ! ! Parent . extend && NATIVE_CODE_REGEX . test ( Parent . extend . toString ( ) ) ;
51
+ var extendNativeClass = ! ! Parent . extend && ( Parent . extend . toString ( ) . indexOf ( "[native code]" ) > - 1 ) ;
53
52
if ( ! extendNativeClass ) {
54
53
__extends_ts ( Child , Parent ) ;
55
54
return ;
Original file line number Diff line number Diff line change 48
48
} ;
49
49
50
50
var __extends = function ( Child , Parent ) {
51
- const NATIVE_CODE_REGEX = / \{ \s * \[ n a t i v e c o d e \] \s * \} / g;
52
- var extendNativeClass = ! ! Parent . extend && NATIVE_CODE_REGEX . test ( Parent . extend . toString ( ) ) ;
51
+ var extendNativeClass = ! ! Parent . extend && ( Parent . extend . toString ( ) . indexOf ( "[native code]" ) > - 1 ) ;
53
52
if ( ! extendNativeClass ) {
54
53
__extends_ts ( Child , Parent ) ;
55
54
return ;
Original file line number Diff line number Diff line change 48
48
} ;
49
49
50
50
var __extends = function ( Child , Parent ) {
51
- const NATIVE_CODE_REGEX = / \{ \s * \[ n a t i v e c o d e \] \s * \} / g;
52
- var extendNativeClass = ! ! Parent . extend && NATIVE_CODE_REGEX . test ( Parent . extend . toString ( ) ) ;
51
+ var extendNativeClass = ! ! Parent . extend && ( Parent . extend . toString ( ) . indexOf ( "[native code]" ) > - 1 ) ;
53
52
if ( ! extendNativeClass ) {
54
53
__extends_ts ( Child , Parent ) ;
55
54
return ;
Original file line number Diff line number Diff line change 48
48
} ;
49
49
50
50
var __extends = function ( Child , Parent ) {
51
- const NATIVE_CODE_REGEX = / \{ \s * \[ n a t i v e c o d e \] \s * \} / g;
52
- var extendNativeClass = ! ! Parent . extend && NATIVE_CODE_REGEX . test ( Parent . extend . toString ( ) ) ;
51
+ var extendNativeClass = ! ! Parent . extend && ( Parent . extend . toString ( ) . indexOf ( "[native code]" ) > - 1 ) ;
53
52
if ( ! extendNativeClass ) {
54
53
__extends_ts ( Child , Parent ) ;
55
54
return ;
Original file line number Diff line number Diff line change 48
48
} ;
49
49
50
50
var __extends = function ( Child , Parent ) {
51
- const NATIVE_CODE_REGEX = / \{ \s * \[ n a t i v e c o d e \] \s * \} / g;
52
- var extendNativeClass = ! ! Parent . extend && NATIVE_CODE_REGEX . test ( Parent . extend . toString ( ) ) ;
51
+ var extendNativeClass = ! ! Parent . extend && ( Parent . extend . toString ( ) . indexOf ( "[native code]" ) > - 1 ) ;
53
52
if ( ! extendNativeClass ) {
54
53
__extends_ts ( Child , Parent ) ;
55
54
return ;
Original file line number Diff line number Diff line change 48
48
} ;
49
49
50
50
var __extends = function ( Child , Parent ) {
51
- const NATIVE_CODE_REGEX = / \{ \s * \[ n a t i v e c o d e \] \s * \} / g;
52
- var extendNativeClass = ! ! Parent . extend && NATIVE_CODE_REGEX . test ( Parent . extend . toString ( ) ) ;
51
+ var extendNativeClass = ! ! Parent . extend && ( Parent . extend . toString ( ) . indexOf ( "[native code]" ) > - 1 ) ;
53
52
if ( ! extendNativeClass ) {
54
53
__extends_ts ( Child , Parent ) ;
55
54
return ;
Original file line number Diff line number Diff line change 48
48
} ;
49
49
50
50
var __extends = function ( Child , Parent ) {
51
- const NATIVE_CODE_REGEX = / \{ \s * \[ n a t i v e c o d e \] \s * \} / g;
52
- var extendNativeClass = ! ! Parent . extend && NATIVE_CODE_REGEX . test ( Parent . extend . toString ( ) ) ;
51
+ var extendNativeClass = ! ! Parent . extend && ( Parent . extend . toString ( ) . indexOf ( "[native code]" ) > - 1 ) ;
53
52
if ( ! extendNativeClass ) {
54
53
__extends_ts ( Child , Parent ) ;
55
54
return ;
Original file line number Diff line number Diff line change 48
48
} ;
49
49
50
50
var __extends = function ( Child , Parent ) {
51
- const NATIVE_CODE_REGEX = / \{ \s * \[ n a t i v e c o d e \] \s * \} / g;
52
- var extendNativeClass = ! ! Parent . extend && NATIVE_CODE_REGEX . test ( Parent . extend . toString ( ) ) ;
51
+ var extendNativeClass = ! ! Parent . extend && ( Parent . extend . toString ( ) . indexOf ( "[native code]" ) > - 1 ) ;
53
52
if ( ! extendNativeClass ) {
54
53
__extends_ts ( Child , Parent ) ;
55
54
return ;
You can’t perform that action at this time.
0 commit comments