File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -656,7 +656,7 @@ function s:JavascriptCompiler.compile_isci(node)
656656endfunction
657657
658658function s: JavascriptCompiler .compile_iscs (node)
659- throw ' NotImplemented: is# '
659+ return self . compile_op2 ( a: node , ' === ' )
660660endfunction
661661
662662function s: JavascriptCompiler .compile_isnot (node)
@@ -668,7 +668,7 @@ function s:JavascriptCompiler.compile_isnotci(node)
668668endfunction
669669
670670function s: JavascriptCompiler .compile_isnotcs (node)
671- throw ' NotImplemented: isnot# '
671+ return self . compile_op2 ( a: node , ' !== ' )
672672endfunction
673673
674674function s: JavascriptCompiler .compile_add (node)
Original file line number Diff line number Diff line change @@ -691,7 +691,7 @@ function s:PythonCompiler.compile_isci(node)
691691endfunction
692692
693693function s: PythonCompiler .compile_iscs (node)
694- throw ' NotImplemented: is# '
694+ return self . compile_op2 ( a: node , ' is ' )
695695endfunction
696696
697697function s: PythonCompiler .compile_isnot (node)
@@ -703,7 +703,7 @@ function s:PythonCompiler.compile_isnotci(node)
703703endfunction
704704
705705function s: PythonCompiler .compile_isnotcs (node)
706- throw ' NotImplemented: isnot# '
706+ return self . compile_op2 ( a: node , ' is not ' )
707707endfunction
708708
709709function s: PythonCompiler .compile_add (node)
You can’t perform that action at this time.
0 commit comments