Re: Review Request: kjs: Implement JSON.stringify

2012-08-12 Thread Maks Orlovich
/jsonstringify.cpp <http://git.reviewboard.kde.org/r/105057/#comment13456> You don't want to be keying by UString here, but rather than Identifier, since they guarantee reference equality of equal strings, unlike UString. CommonIdentifiers.h has the traits for them.

Re: Review Request: kjs: Implement JSON.parse

2012-07-22 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/105056/#review16241 --- Ship it! Ship It! - Maks Orlovich On July 6, 2012, 7:11

Re: Review Request: kjs: Mark Date Infinity as invalid

2012-07-22 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/105387/#review16230 --- Ship it! Ship It! - Maks Orlovich On July 6, 2012, 6:30

Re: Review Request: kjs: Implement JSON.parse

2012-07-06 Thread Maks Orlovich
056/#comment12091> What about two commas in a row? kjs/jsonlexer.cpp <http://git.reviewboard.kde.org/r/105056/#comment12093> what if this puts you past the end of the string? - Maks Orlovich On July 5, 2012, 12:50 p.m., Bernd Busc

Re: Review Request: kjs: Use toPrimitive in Array.join to get the correct String

2012-07-06 Thread Maks Orlovich
ttp://git.reviewboard.kde.org/r/105391/#comment12090> I was thinking you could get rid of the if (element->isObject()) conditional as well. - Maks Orlovich On July 4, 2012, 10:27 p.m., Bernd Buschinski wrote: > > --- > This is an automat

Re: Review Request: kjs: Range needs a prototype

2012-07-06 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/105388/#review15460 --- Ship it! Ship It! - Maks Orlovich On June 29, 2012, 6:06

Re: Review Request: kjs: Implement Date.toISOString

2012-07-06 Thread Maks Orlovich
386/#comment12089> what if hour becomes negative here? - Maks Orlovich On June 29, 2012, 6:06 p.m., Bernd Buschinski wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > http://git.rev

Re: Review Request: kjs: Mark Date Infinity as invalid

2012-07-06 Thread Maks Orlovich
387/#comment12087> Same fix here? (And perhaps in other spots?) Really, this probably needs some cleanup to not dupe this chunk of code; the spec defines one in terms of the other, after all. - Maks Orlovich On June 29, 2012, 6:06 p.m., Bernd Buschinski

Re: Review Request: kjs: FunctionObject prototype attribute should be [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: false

2012-07-06 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/105122/#review15457 --- Ship it! Ship It! - Maks Orlovich On June 18, 2012, 10:23

Re: Review Request: kjs: Implement JSON.stringify

2012-07-04 Thread Maks Orlovich
Again, I am pretty sure this is supposed to only list array properties, and not symbolic ones, which you would get via getPropertyNames. - Maks Orlovich On June 1, 2012, 1:30 p.m., Bernd Buschinski wrote: > > --- > This is

Re: Review Request: kjs: Implement JSON.stringify

2012-07-04 Thread Maks Orlovich
iewboard.kde.org/r/105057/#comment11269> Does this do the right thing if it's shorter than 10? - Maks Orlovich On June 1, 2012, 1:30 p.m., Bernd Buschinski wrote: > > --- > This is an automatically

Re: Review Request: kjs: Implement JSON.parse

2012-07-04 Thread Maks Orlovich
nt11974> I don't think this is needed anymore. kjs/jsonlexer.cpp <http://git.reviewboard.kde.org/r/105056/#comment11975> Again, please fix this to not be needlessly recursive. - Maks Orlovich On June 18, 2012, 10:25

Re: Review Request: kjs: Use toPrimitive in Array.join to get the correct String

2012-07-04 Thread Maks Orlovich
391/#comment11970> I think you can just use toString regardless of whether it's an object or not. (But don't forget to check hadException, of course) - Maks Orlovich On June 30, 2012, 2:10 a.m., Bernd

Re: Review Request: implement support for window.onhashchange

2012-06-10 Thread Maks Orlovich
/kjs_events.cpp <http://git.reviewboard.kde.org/r/104946/#comment11540> 5, not 7 khtml/ecma/kjs_window.h <http://git.reviewboard.kde.org/r/104946/#comment11541> Add HashChangeEventCtor as well? - Maks Orlovich On May 15, 2012, 12:56 p.m., Martin Tobias Holmedahl San

Re: Review Request: kjs: Implement JSON.parse

2012-06-10 Thread Maks Orlovich
kjs/jsonlexer.cpp <http://git.reviewboard.kde.org/r/105056/#comment11537> Where did the -? go? kjs/jsonlexer.cpp <http://git.reviewboard.kde.org/r/105056/#comment11538> Comment method? - Maks Orlovich On May 28, 2012, 7:52 p.m., Bernd Buschinski wrote: &g

Re: Review Request: kjs: FunctionObject prototype attribute should be [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: false

2012-06-10 Thread Maks Orlovich
= function foo()) as well? The constructor is used for stuff like x = new Function(), if I get what you were referring to. - Maks Orlovich On May 31, 2012, 9 p.m., Bernd Buschinski wrote: > > --- > This is an automatically generated e

Re: Review Request: khtml: Fix memleak in DOMStringImpl::lower usage

2012-06-10 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/105099/#review14587 --- Ship it! Ship It! - Maks Orlovich On May 29, 2012, 6:05

Re: Review Request: kjs: Implement JSON.parse

2012-05-28 Thread Maks Orlovich
hat if all valid characters in the buffer are whitespace? You'll run past the end of it. Also, this code isn't robust if ::next() is called at end-of-file more than once. I would suggest something like: while(true) { if (m_pos >= m_code.size()) { m_

Re: Review Request: kjs: Fix UString::toDouble not cutting-off leading unicode spaces

2012-05-28 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104858/#review14238 --- Ship it! Ship It! - Maks Orlovich On May 21, 2012, 12:42

Re: Review Request: kjs: Introduce & use leftFirst parameter in relation check, according to Ecmascript 5.1r6.

2012-05-28 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104906/#review14237 --- Ship it! Ship It! - Maks Orlovich On May 10, 2012, 7:01

Re: Review Request: kjs: Fix Errorprototype inheritance

2012-05-13 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104908/#review13781 --- Ship it! Ship It! - Maks Orlovich On May 10, 2012, 7:01

Re: Review Request: kjs: Introduce & use leftFirst parameter in relation check, according to Ecmascript 5.1r6.

2012-05-13 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104906/#review13780 --- Any performance effect? - Maks Orlovich On May 10, 2012, 7

Re: Review Request: kjs: Update Error.prototype.toString to ECMA Edition 5.1r6 format

2012-05-13 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104907/#review13779 --- Ship it! Ship It! - Maks Orlovich On May 10, 2012, 7:01

Re: Review Request: kjs: Implement standard String.trim, also non-standard trimLeft & trimRight

2012-05-13 Thread Maks Orlovich
board properly. - Maks Orlovich On May 4, 2012, 5:40 p.m., Bernd Buschinski wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard

Re: Review Request: kjs: Implement standard String.trim, also non-standard trimLeft & trimRight

2012-05-13 Thread Maks Orlovich
g/r/104857/#comment10935> Could you use a const pointer here to make this look less scary? - Maks Orlovich On May 4, 2012, 5:40 p.m., Bernd Buschinski wrote: > > --- > This is an automatically generated e-mail. To reply

Re: Review Request: kjs: Fix parseFloat not cutting-off leading unicode spaces

2012-05-13 Thread Maks Orlovich
you want to change it in ustring.cpp so it affects the implicit conversions as well. Testcase: "\u180e6"*7 (See also 9.3.1) - Maks Orlovich On May 4, 2012, 5:40 p.m., Bernd Buschinski wrote: > > --- > This

Re: Review Request: kjs: Unify/de-duplicate Space checking

2012-05-13 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104855/#review13775 --- Ship it! - Maks Orlovich On May 4, 2012, 5:40 p.m., Bernd

Re: Review Request: kjs: Unify/de-duplicate Space checking

2012-05-13 Thread Maks Orlovich
855/#comment10934> This needs a bit of a comment tweak --- it's not in Zs but rather Cf, but ES 5th edition treats it specially. (And differently from the rule in 3rd edition, which no-one implemented). - Maks Orlovich On May 4, 2012, 5:40 p.m., Bernd Busch

Re: Review Request: KJS: Implement Object.GetOwnPropertyDescriptor & Object.DefineProperty

2012-04-30 Thread Maks Orlovich
for the foo == bar || (foo && bar && sameValue(exec, m_value, other.value()) pattern, too. kjs/propertydescriptor.cpp <http://git.reviewboard.kde.org/r/104515/#comment10195> I think parentheses would be helpful here. kjs/propertydescri

Re: Review Request: kjs: Implement Object.seal & Object.isSealed

2012-04-29 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104747/#review13096 --- Ship it! Again, ->toString, but nothing else. - M

Re: Review Request: kjs: Implement Object.freeze & Object.isFrozen

2012-04-29 Thread Maks Orlovich
ion messages being risky. - Maks Orlovich On April 26, 2012, 8:53 p.m., Bernd Buschinski wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.k

Re: Review Request: KJS: Implement Object.prototypeOf, Object.keys, Object.getOwnPropertyNames

2012-04-29 Thread Maks Orlovich
? - Maks Orlovich On April 26, 2012, 4:34 p.m., Bernd Buschinski wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.

Re: Review Request: kjs: Implement Object.defineProperties

2012-04-29 Thread Maks Orlovich
ing which will be coming with the big important review. And, of course, the prereqs. - Maks Orlovich On April 16, 2012, 11:02 p.m., Bernd Buschinski wrote: > > --- > This is an automatically generated e-mail. To reply, v

Re: Review Request: kjs: Implement Object.create

2012-04-29 Thread Maks Orlovich
ust pass in jso->prototype to constructor above? - Maks Orlovich On April 16, 2012, 11:03 p.m., Bernd Buschinski wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > http://gi

Re: Review Request: kjs: Implement Array.isArray

2012-04-21 Thread Maks Orlovich
ttp://git.reviewboard.kde.org/r/104676/#comment9978> Again, can just call getObject and check is vs. NULL to make this marginally faster. - Maks Orlovich On April 19, 2012, 7:41 p.m., Bernd Buschinski wrote: > > --- > This is an automatically g

Re: Review Request: KJS/Grammar: Introduce new non-terminal IdentifierName, to handle keywords as PropertyName, in Memberexps and CallExpr

2012-04-21 Thread Maks Orlovich
in the ether: I meant number of shift/reduce conflicts in the parser, as reported by bison. I am ashamed to admit that I am not able to detect LALR parsing ambiguities by inspection.. - Maks Orlovich On March 12, 2012, 9:03 p.m., Bernd Buschinski wrote

Re: Review Request: KJS: Implement Object.prototypeOf, Object.keys, Object.getOwnPropertyNames

2012-04-21 Thread Maks Orlovich
handy to include DontEnum properties as well..) kjs/property_map.cpp <http://git.reviewboard.kde.org/r/104511/#comment9977> This needs to be inline in the header file. - Maks Orlovich On April 20, 2012, 11:48 a.m., Bernd Buschinski

Re: Review Request: kjs: Global NaN, undefined and Infinity should be [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false

2012-04-21 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104678/#review12763 --- Ship it! Ship It! - Maks Orlovich On April 19, 2012, 7:41

Re: Review Request: kjs: All prototype constructor should be [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true

2012-04-21 Thread Maks Orlovich
the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified" Looks good other than, so please just fix your changelog :) - Maks Orlovich On April 19, 2012, 7:41 p.m., Bernd Buschinski wrote: > > -

Re: Review Request: KJS: Correctly get begin, deleteCount for Splice

2012-04-15 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104104/#review12474 --- Ship it! Ship It! - Maks Orlovich On March 21, 2012, 11:55

Re: Review Request: KJS: No longer treat invalid hex as string

2012-04-15 Thread Maks Orlovich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104076/#review12473 --- Ship it! Ship It! - Maks Orlovich On March 21, 2012, 11:52

Re: Review Request: KJS: Implement Object.prototypeOf, Object.keys, Object.getOwnPropertyNames

2012-04-15 Thread Maks Orlovich
tEnumProperties) is possible? It's just a hair too ugly for the number of places it's in. - Maks Orlovich On April 13, 2012, 9:38 a.m., Bernd Buschinski wrote: > > --- > This is an automatically genera

Re: Review Request: KJS: Implement Object.prototypeOf, Object.keys, Object.getOwnPropertyNames

2012-04-15 Thread Maks Orlovich
> On April 10, 2012, 2:38 a.m., Maks Orlovich wrote: > > kjs/function.cpp, line 308 > > <http://git.reviewboard.kde.org/r/104511/diff/1/?file=56157#file56157line308> > > > > Why convert to ident when isMapped will convert back to number again? > >

Re: Review Request: KJS: Implement Object.GetOwnPropertyDescriptor & Object.DefineProperty

2012-04-09 Thread Maks Orlovich
656> There is an explicit isUndefined check, but what about the ways in which toObject can fail? kjs/operations.cpp <http://git.reviewboard.kde.org/r/104515/#comment9657> Please point out how this isn't the same as strictEquals (due to the spec having two almost identical

Re: Review Request: KJS: Implement Object.prototypeOf, Object.keys, Object.getOwnPropertyNames

2012-04-09 Thread Maks Orlovich
ion with the above; the only difference is what gets passed to getOwnPropertyNames as last argument, isn't it? This is way too much to duplicate.. - Maks Orlovich On April 8, 2012, 9:14 p.m., Bernd Buschinski wrote: > > --- >

Re: Review Request: KJS: Correctly get begin, deleteCount for Splice

2012-03-20 Thread Maks Orlovich
ent9268> args[1]->toInteger() here, per 15.4.4.12 step 7 - Maks Orlovich On Feb. 28, 2012, 3:12 p.m., Bernd Buschinski wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > h

Re: Review Request: KJS/Grammar: Introduce new non-terminal IdentifierName, to handle keywords as PropertyName, in Memberexps and CallExpr

2012-03-20 Thread Maks Orlovich
licts? kjs/grammar.y <http://git.reviewboard.kde.org/r/104243/#comment9264> Do we have a bug here with numeric setters/getters? (Unrelated to your CL) - Maks Orlovich On March 12, 2012, 9:03 p.m., Bernd Buschinski wrote: > > ---

Re: Review Request: KJS: No longer treat invalid hex as string

2012-03-20 Thread Maks Orlovich
mitting this recovery (testcase: "\x")? - Maks Orlovich On Feb. 25, 2012, 4:31 p.m., Bernd Buschinski wrote: > > --- > This is an automatically generated e-mail. To reply, visit: &