| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove some unused properties from objects
* Un-extern JSFunctionList
* Remove js/javascript dependency from regex (the wrapper functions
were rather pointless)
* Remove setProperty (only toJS(Table) used it, but there we have to
use defineProperty instead.)
* Accordingly, use definePropertyCWE in toJS(Table)
* Simplify fromJSTable (replace pointer arithmetic with UncheckedArray)
* Reduce implicit `result' usage
|
|
|
|
|
|
|
|
| |
Use current document's URL if window && window.document, otherwise
default to about:blank.
Also, it seems that passing nil to window is really necessary in some
cases, so remove notes indicating otherwise.
|
|
|
|
|
|
|
|
|
| |
Walking the prototype chain for every single type just so we can define
the few LegacyUnforgeable properties we need is not the greatest idea.
Instead, we now merge LegacyUnforgeable lists with those of ancestor
prototypes, which reduces the entire ceremony to a single `get'
from the global table.
|
| |
|
|
|
|
| |
oops
|
|
|
|
|
|
|
|
| |
Add jsuffget, jsuffunc for setting LegacyUnforgeable on functions.
Misc fixes:
* define LegacyUnforgeable properties for native object shims
* replace some macros with templates
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Events: just implement the interfaces, no events are triggered yet.
JS changes:
* add LegacyUnforgeable
* make consts enumerable
* fix crash in isInstanceOf
* fix destructor warnings
* refactor registerType
As a result, peakmem is now 1G+ on 1.6.14. It stays ~750M on 2.0.0. Hmm.
Well, better upgrade to 2.0.0 I guess.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Import punycode, as it has been removed from stdlib.
* Fix some syntax errors
* Apparently you can no longer compare distinct pointers with nil.
Add explicit comparisons with typeof(nil) instead.
* htmlparser: rename _ to other, as semantics of _ have changed.
(Quite a shame, it looked better with _. Oh well.)
* Explicitly specify mm:refc, as the browser OOMs with orc for
some reason.
Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8.
(<1.6.8 it's broken & wontfix.)
|
|
|
|
|
|
|
| |
This makes it so that host = 'example\.org' mandates an exact match,
but host = '^example' matches example.org, example.com, etc.
(Previously, 'example\.org' would have matched exampleexample.org
as well, which was quite counter-intuitive.)
|
| |
|
|
|
|
|
|
|
| |
This allows us to greatly simplify exec(Regex). In particular, we
no longer have to convert any line containing non-ascii characters
into UTF-16 (which was a significant inefficiency in regex search
until now).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
And with that, implement Request constructor with a Request init.
|
| |
|
| |
|
| |
|
|
|
|
| |
Still a hack, but maybe more reliable?
|
|
|
|
|
| |
This should help with moving to ORC in the future. (Also, finalizers
do not work very well in the first place.)
|
|
|
|
| |
Note: setters do not work yet.
|
|
|
|
|
| |
Not sure how it ever worked.
This fixes Text() constructors etc.
|
| |
|
| |
|
|
|
|
| |
Add a JS_GetClassID function to QJS instead.
|
| |
|
| |
|
| |
|
|
|
|
| |
I believe this works correctly. Hopefully I'm not wrong.
|
| |
|
| |
|
|
|
|
|
|
| |
Pros: maybe doesn't corrupt memory
Cons: leaks memory instead
Maybe we should just use destructors...
|
|
|
|
| |
So that the finalizer is actually triggered
|
| |
|
| |
|
| |
|
|
|
|
| |
Instead of setting the non-standard res variable.
|
| |
|
|
|
|
| |
Must unref them if unused.
|
|
|
|
|
| |
Now we use Result for passing exceptions to JS. As a result, we can
finally get rid of the .jserr pragma.
|
| |
|
|
|
|
|
| |
Now a promise returning nil doesn't just leave the rest of the then
chain hanging. Hooray.
|
| |
|
| |
|
|
|
|
| |
Not sure if this helps
|
| |
|
|
|
|
| |
Oops
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Quite incomplete canvas implementation. Crucially, the layout engine
can't do much with whatever is drawn because it doesn't support images
yet.
I've re-introduced multipart as well, with the FormData API. For the
append function I've also introduced a hack to the JS binding generator
that allows requesting the JSContext pointer in nim procs. Really I
should just fix the union generator thing and add support for overloading.
In conclusion, for now the only thing canvas can be used for is exporting
it as PNG and uploading it somewhere. Also, we now have PNG encoding and
decoding too. (Now if only we had sixels as well...)
|