Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Nov 6, 2023
1 parent e5a89cd commit 062290e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
6 changes: 0 additions & 6 deletions doc/quickjs.texi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 0 additions & 2 deletions repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 062290e

Please sign in to comment.