Git Product home page Git Product logo

Comments (3)

kpreid avatar kpreid commented on August 28, 2024

Comment #1 originally posted by mikesamuel on 2008-01-18T06:05:36.000Z:

What about the operand to typeof?

Should
typeof foo
=>
typeof .primFreeze(___OUTERS.foo)
?

from caja.

kpreid avatar kpreid commented on August 28, 2024

Comment #2 originally posted by erights on 2008-01-18T22:40:41.000Z:

On Jan 18, 2008 10:21 AM, Mike Samuel [email protected] wrote:

On Jan 17, 10:08 pm, "Mark Miller" [email protected] wrote:

Good point. It should not. And while we're thinking to enumerate such
things, neither should === or !==, whereas == and != should expand
operands. Hmmm. Getting kinda complex and hard to remember. ;(

What's the rule of hand?

"of hand?"?

If an expansion could cause an implied valueOf or toString invocation,
then it needs to check frostiness?

At least. If an expansion could cause an access of any sort with a function's
properties other than one of the exempted initialization actions, then this must
cause the function to be frozen.

Thanks for prodding me to clarify this. In the process I realize that my proposed
exemption for instanceof is wrong. "x instanceof T" causes an access of
"T.prototype". Until the function is frozen this can change. Had Ihab implemented the
rule I'd proposed, this change would have been observable. I now realize that Ihab's
implementation is correct and my spec is wrong. I'm closing bug
http://code.google.com/p/google-caja/issues/detail?id=31 as Invalid.

from caja.

kpreid avatar kpreid commented on August 28, 2024

Comment #3 originally posted by mikesamuel on 2008-01-20T03:37:46.000Z:

But typeof still shouldn't be frozen, right

from caja.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.