Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13025 closed feature (notabug)

Can jQuery successfully execute in strict mode?

Reported by: sime.vidas@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

Description

I've added the use-strict directive at the beginning of the outermost function in the jQuery source:

(function( window, undefined ) {
    'use strict';

Then, I've included this modified jQuery script to a web-page, and it executed without an error. So, jQuery core is able to initialize in strict mode successfully, but what about any changes in behavior? Can we expect jQuery to behave the same in strict mode?

What's your stance on this? Have you done testing in strict mode? When can we expect the use-strict directive to be included in jQuery core?

Change History (2)

comment:1 Changed 8 years ago by dmethvin

Resolution: notabug
Status: newclosed

It's already in 1.9 pre-beta: http://code.jquery.com/jquery-git.js

comment:2 Changed 8 years ago by sime.vidas@…

Great :-) Keep it up!

Note: See TracTickets for help on using tickets.