Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8008458

Strict functions dont share property map

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • core-libs
    • None
    • b98
    • generic
    • generic

      function func() { 'use strict' ; }
      function func2() { 'use strict'; }

      print(Debug.map(func) === Debug.map(func2)); // prints false rather than true

      // If 'strict' clause is removed, we see that the functions share the map

            jlaskey Jim Laskey
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: