Skip to content

Commit a6ba08b

Browse files
author
tianya
committed
更新到2021-03-27版本
1 parent 01f0e6d commit a6ba08b

21 files changed

+588
-270
lines changed

Changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2021-03-27:
2+
3+
- faster Array.prototype.push and Array.prototype.unshift
4+
- added JS_UpdateStackTop()
5+
- fixed Windows console
6+
- misc bug fixes
7+
18
2020-11-08:
29

310
- improved function parameter initializers

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
QuickJS Javascript Engine
2+
3+
Copyright (c) 2017-2021 Fabrice Bellard
4+
Copyright (c) 2017-2021 Charlie Gordon
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
22
# QuickJS Javascript Engine
33
#
4-
# Copyright (c) 2017-2020 Fabrice Bellard
5-
# Copyright (c) 2017-2020 Charlie Gordon
4+
# Copyright (c) 2017-2021 Fabrice Bellard
5+
# Copyright (c) 2017-2021 Charlie Gordon
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal
@@ -179,6 +179,7 @@ LIBS=-lm
179179
ifndef CONFIG_WIN32
180180
LIBS+=-ldl -lpthread
181181
endif
182+
LIBS+=$(EXTRA_LIBS)
182183

183184
$(OBJDIR):
184185
mkdir -p $(OBJDIR) $(OBJDIR)/examples $(OBJDIR)/tests

TODO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ Optimization ideas:
6666
Test262o: 0/11262 errors, 463 excluded
6767
Test262o commit: 7da91bceb9ce7613f87db47ddd1292a2dda58b42 (es5-tests branch)
6868

69-
Result: 51/75119 errors, 899 excluded, 570 skipped
70-
Test262 commit: 1c33fdb0ca60fb9d7392403be769ed0d26209132
69+
Result: 35/75280 errors, 909 excluded, 585 skipped
70+
Test262 commit: 31126581e7290f9233c29cefd93f66c6ac78f1c9

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2020-11-08
1+
2021-03-27

doc/quickjs.html

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/quickjs.pdf

74 Bytes
Binary file not shown.

doc/quickjs.texi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,10 +896,11 @@ set the C opaque point with
896896
@code{JS_GetOpaque()}/@code{JS_SetOpaque()}.
897897

898898
When defining a new JS class, it is possible to declare a finalizer
899-
which is called when the object is destroyed. A @code{gc_mark} method
900-
can be provided so that the cycle removal algorithm can find the other
901-
objects referenced by this object. Other methods are available to
902-
define exotic object behaviors.
899+
which is called when the object is destroyed. The finalizer should be
900+
used to release C resources. It is invalid to execute JS code from
901+
it. A @code{gc_mark} method can be provided so that the cycle removal
902+
algorithm can find the other objects referenced by this object. Other
903+
methods are available to define exotic object behaviors.
903904

904905
The Class ID are globally allocated (i.e. for all runtimes). The
905906
JSClass are allocated per @code{JSRuntime}. @code{JS_SetClassProto()}

libbf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Tiny arbitrary precision floating point library
33
*
4-
* Copyright (c) 2017-2020 Fabrice Bellard
4+
* Copyright (c) 2017-2021 Fabrice Bellard
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

libbf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Tiny arbitrary precision floating point library
33
*
4-
* Copyright (c) 2017-2020 Fabrice Bellard
4+
* Copyright (c) 2017-2021 Fabrice Bellard
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)