From 062290ef1229d6940abfca6368c8b2d60472786d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 7 Nov 2023 00:22:52 +0100 Subject: [PATCH] fixup! --- doc/quickjs.texi | 6 ------ quickjs.c | 14 +++++++------- repl.js | 2 -- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/doc/quickjs.texi b/doc/quickjs.texi index 9eb6354b..304e12fd 100644 --- a/doc/quickjs.texi +++ b/doc/quickjs.texi @@ -286,8 +286,6 @@ ECMA402 (Internationalization API) is not supported. @itemize -@item The directive @code{"use strip"} indicates that the debug information (including the source code of the functions) should not be retained to save memory. As @code{"use strict"}, the directive can be global to a script or local to a function. - @item The first line of a script beginning with @code{#!} is ignored. @end itemize @@ -305,10 +303,6 @@ standard Javascript. See @code{jsbignum.pdf} for more information. @item Operator overloading. -@item The directive @code{"use bigint"} enables the bigint mode where integers are @code{BigInt} by default. - -@item The directive @code{"use math"} enables the math mode where the division and power operators on integers produce fractions. Floating point literals are @code{BigFloat} by default and integers are @code{BigInt} by default. - @end itemize @section Modules diff --git a/quickjs.c b/quickjs.c index 6df10ad6..a79cfcbb 100644 --- a/quickjs.c +++ b/quickjs.c @@ -32252,13 +32252,13 @@ static JSValue js_create_function(JSContext *ctx, JSFunctionDef *fd) goto fail; #if defined(DUMP_BYTECODE) && (DUMP_BYTECODE & 2) - printf("pass 2\n"); - dump_byte_code(ctx, 2, fd->byte_code.buf, fd->byte_code.size, - fd->args, fd->arg_count, fd->vars, fd->var_count, - fd->closure_var, fd->closure_var_count, - fd->cpool, fd->cpool_count, fd->source, fd->line_num, - fd->label_slots, NULL); - printf("\n"); + printf("pass 2\n"); + dump_byte_code(ctx, 2, fd->byte_code.buf, fd->byte_code.size, + fd->args, fd->arg_count, fd->vars, fd->var_count, + fd->closure_var, fd->closure_var_count, + fd->cpool, fd->cpool_count, fd->source, fd->line_num, + fd->label_slots, NULL); + printf("\n"); #endif if (resolve_labels(ctx, fd)) diff --git a/repl.js b/repl.js index 484269e1..ea1bab69 100644 --- a/repl.js +++ b/repl.js @@ -22,8 +22,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -"use strip"; - import * as std from "std"; import * as os from "os";