Robert Krimen
3ba06f003c
Fix NaN/+0/-0 comparison in Array.prototype.indexOf
2014-01-24 21:20:22 -08:00
Robert Krimen
02a5e270d8
Test the genericity of Array.prototype.indexOf
2014-01-24 21:20:22 -08:00
Robert Krimen
7970552164
Fix: Array.prototype.sort.length = 1
2014-01-22 20:46:15 -08:00
Robert Krimen
5e8cb6296e
Fix: Array.isArray.length = 1
2014-01-22 20:33:46 -08:00
Robert Krimen
81d91501f8
Handle non-numeric arguments to new Array properly
2014-01-22 20:30:10 -08:00
Robert Krimen
21cd663185
Allow .bind to bind [[Construct]]
2014-01-20 18:04:34 -08:00
Robert Krimen
73b83020ce
Add caller and arguments properties to functions via .bind
2014-01-20 13:25:41 -08:00
Robert Krimen
4fd197197d
Add test for .binding something that is not callable
2014-01-20 13:13:44 -08:00
Robert Krimen
2d6125ee2c
Fix .length property of functions via .bind
2014-01-20 12:58:00 -08:00
Robert Krimen
a36c19873f
Fix Function.prototype.call .length
2014-01-20 12:42:23 -08:00
Robert Krimen
dace228dc8
Remove superfluous test
2014-01-20 12:32:08 -08:00
Robert Krimen
975b815b58
Fix: Function.prototype.toString (Should not be generic)
2014-01-20 12:27:05 -08:00
Robert Krimen
7d9809b2ec
Fix: Function(null)
...
Should throw a SyntaxError for any keyword
2014-01-20 11:47:36 -08:00
Robert Krimen
6daecbf17e
Fix: Function("z;x", ...)
...
Should throw a SyntaxError
2014-01-20 11:27:37 -08:00
Robert Krimen
514ac5ab9c
Fix parsing: body, parameters => parameters, body
...
We were parsing in revese order...
2014-01-20 10:59:56 -08:00
Robert Krimen
e40549dbd2
Fix: Function("abc, def", "ghi", ...)
2014-01-20 10:30:02 -08:00
Robert Krimen
89a849c136
Fix: "[object Object]" (Should be a SyntaxError)
2014-01-20 10:29:41 -08:00
Robert Krimen
4a6c644125
Fix Object.defineProperties to only enumerate over enumerable
2014-01-20 08:56:10 -08:00
Robert Krimen
4860ef573b
Fix Function.bind to use newBoundFunction...
...
...instead of newBoundFunctionObject
Basically, newBoundFunctionObject returns an incomplete object (without a prototype, __prototype__, etc.)
2014-01-20 08:27:19 -08:00
Robert Krimen
c47cf7be6e
Improve arguments property handling
...
Also, fix an issue with double enumeration of arguments
2014-01-19 21:08:05 -08:00
Robert Krimen
4c1bc5857b
Fix documentation (nikai3d)
...
This fixes #45
The errors are manifest in the README, but this is automatically generated from the go documentation, so we have to fix them at the source
2014-01-19 10:52:14 -08:00
Robert Krimen
7cd78b3a28
Make Date.now test less flaky
...
This fixes #44
2014-01-19 09:24:46 -08:00
Tim Jurcka
805a4c27b1
Fix redundant evaluation of test in "for" (sdgoij/MatrixFrog)
...
This fixes #39
2014-01-19 09:08:47 -08:00
Daniel Cannon
fd6b047e2b
Updated toValue to properly handle nil pointers (dancannon)
...
Also, added test
2014-01-18 17:35:26 -08:00
Robert Krimen
ca0a007083
RangeError if Array.length = 3.141, new Array(3.141), etc.
2013-08-11 14:59:31 -07:00
Robert Krimen
483ab77362
toInteger: Add integerFloat
2013-07-31 21:54:26 -07:00
Robert Krimen
f9e07770bd
[[Value]] should NOT be set to Undefined if missing
2013-07-21 17:48:42 -07:00
Robert Krimen
ac8b526ba6
Test DefineOwnProperty (Array)
2013-07-21 17:48:42 -07:00
Robert Krimen
5282a5a45b
8.12.9: Keep [[Value]] if not explicitly given
2013-07-21 17:48:42 -07:00
Robert Krimen
9b5a81157b
8.12.9: Fix panic when [[Writable]] is something but [[Value]] is not
2013-07-21 17:48:36 -07:00
Robert Krimen
6307c5ebaf
8.12.9: Merge property descriptors (writable, enumerable, configurable)
2013-07-21 17:48:32 -07:00
Robert Krimen
4c63bd4498
8.12.9: Reject instead of just returning false
2013-07-21 17:48:06 -07:00
Robert Krimen
cb6886a033
Fix Object.create to skip non-enumerable properties
2013-07-20 16:54:01 -07:00
Robert Krimen
cf3fad5e7b
Remove extra/invalid constructors (inline)
2013-07-20 16:37:57 -07:00
Robert Krimen
aede245ed6
Include property names when inlining
2013-07-20 15:24:56 -07:00
Robert Krimen
2db07ee8bb
Add Number.toLocaleString
2013-07-14 14:52:44 -07:00
Robert Krimen
33672f5c98
Add String.toLocaleUpperCase
2013-07-14 14:38:59 -07:00
Robert Krimen
3d883a981e
Add String.toLocaleLowerCase
2013-07-14 14:35:50 -07:00
Robert Krimen
e7370c43cc
Fix TestDate_now to be less flakey
...
Only test up to second
2013-07-14 14:20:01 -07:00
Robert Krimen
ea621687a4
Add Otto.Copy()
2013-07-14 14:20:01 -07:00
Robert Krimen
1481c43476
Add String.trim (robertkrimen)
2013-07-14 14:20:01 -07:00
Robert Krimen
761b60eed6
Refine parts of builtin_array.go
2013-07-14 14:20:01 -07:00
Robert Krimen
19360eafc4
Add String.localeCompare
2013-07-14 14:20:01 -07:00
Tim Jurcka
c4f4853205
Fix ./inline > inline.go (OSX 10.8.3, Perl 5.12.4)
...
This fixes #34
~$ ./inline > inline.go
Can't locate object method "print" via package "IO::File" at ./inline line 24.
~$ perl -V
Summary of my perl5 (revision 5 version 12 subversion 4) configuration:
Platform:
osname=darwin, osvers=12.0, archname=darwin-thread-multi-2level
uname='darwin b1017.apple.com 12.0 darwin kernel version 12.0.0: tue may 15 23:31:29 pdt 2012; root:xnu-2050.6.70~1release_x86_64 x86_64 '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=clang'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='clang', ccflags ='-arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include',
optimize='-Os',
cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='clang -mmacosx-version-min=10.8', ldflags ='-arch i386 -arch x86_64 -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-arch i386 -arch x86_64 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
Locally applied patches:
/Library/Perl/Updates/<version> comes before system perl directories
installprivlib and installarchlib points to the Updates directory
Built under darwin
Compiled at Jun 16 2012 10:12:45
@INC:
/Library/Perl/5.12/darwin-thread-multi-2level
/Library/Perl/5.12
/Network/Library/Perl/5.12/darwin-thread-multi-2level
/Network/Library/Perl/5.12
/Library/Perl/Updates/5.12.4
/System/Library/Perl/5.12/darwin-thread-multi-2level
/System/Library/Perl/5.12
/System/Library/Perl/Extras/5.12/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.12
2013-07-14 14:19:39 -07:00
Tim Jurcka
48ae292508
Fix Object.create() prototype assignment
...
This fixes #30
2013-07-14 14:19:29 -07:00
Tim Jurcka
0845d0253a
Add Date.now()
...
This fixes #33
2013-07-14 14:19:21 -07:00
Tim Jurcka
dd7d387420
Add String.prototype.trim(), and non-standard trimLeft(), trimRight()
...
This fixes #32
2013-07-14 14:19:06 -07:00
Robert Krimen
40d01ced6e
Add Array.reduceRight (sdgoij)
2013-06-23 15:29:33 +02:00
Robert Krimen
1b70913ef7
Add Array.reduce (sdgoij)
2013-06-23 14:56:26 +02:00
Robert Krimen
bbc7992385
Add Array.filter (sdgoij)
2013-06-23 14:44:41 +02:00