From c39d9e37c85d921c762dda995b6aa5e12f39cbe0 Mon Sep 17 00:00:00 2001 From: David Fugate Date: Mon, 27 Feb 2012 15:44:44 -0800 Subject: Microsoft's test262 contributions corresponding to the February 2012 consumer preview of IE 10. --- .../TestCases/ch10/10.4/10.4.3/10.4.3-1-10-s.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-100-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-100gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-101-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-101gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-102-s.js | 38 ++++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-102gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-10gs.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-11-s.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-11gs.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-12-s.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-12gs.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-13-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-13gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-14-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-14gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-15-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-15gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-16-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-16gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-17-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-17gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-19-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-19gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-20-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-20gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-21-s.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-21gs.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-22-s.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-22gs.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-23-s.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-23gs.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-24-s.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-24gs.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-25-s.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-25gs.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-26-s.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-26gs.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-27-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-27gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-28-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-28gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-29-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-29gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-30-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-30gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-31-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-31gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-32-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-32gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-33-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-33gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-34-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-34gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-35-s.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-35gs.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-36-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-36gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-37-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-37gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-38-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-38gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-39-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-39gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-40-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-40gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-41-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-41gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-42-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-42gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-43-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-43gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-44-s.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-44gs.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-45-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-45gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-46-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-46gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-47-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-47gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-48-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-48gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-49-s.js | 37 +++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-49gs.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-50-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-50gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-51-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-51gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-52-s.js | 36 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-52gs.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-53-s.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-53gs.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-54-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-54gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-55-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-55gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-56-s.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-56gs.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-57-s.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-57gs.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-58-s.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-58gs.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-59-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-59gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-60-s.js | 35 ++++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-60gs.js | 33 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-61-s.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-61gs.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-62-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-62gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-63-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-63gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-64-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-64gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-65-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-65gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-66-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-66gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-67-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-67gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-68-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-68gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-69-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-69gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-70-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-70gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-71-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-71gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-72-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-72gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-73-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-73gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-74-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-74gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-75-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-75gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-76-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-76gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-77-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-77gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-78-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-78gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-79-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-79gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-80-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-80gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-81-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-81gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-82-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-82gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-83-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-83gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-84-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-84gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-85-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-85gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-86-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-86gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-87-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-87gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-88-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-88gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-89-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-89gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-9-s.js | 34 +++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-90-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-90gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-91-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-91gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-92-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-92gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-93-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-93gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-94-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-94gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-95-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-95gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-96-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-96gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-97-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-97gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-98-s.js | 32 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-98gs.js | 30 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-99-s.js | 31 ++++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-99gs.js | 29 +++++++++++++++++ .../TestCases/ch10/10.4/10.4.3/10.4.3-1-9gs.js | 32 ++++++++++++++++++ 186 files changed, 6018 insertions(+) create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-10-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-100-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-100gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-101-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-101gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-102-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-102gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-10gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-11-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-11gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-12-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-12gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-13-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-13gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-14-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-14gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-15-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-15gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-16-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-16gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-17-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-17gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-19-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-19gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-20-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-20gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-21-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-21gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-22-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-22gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-23-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-23gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-24-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-24gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-25-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-25gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-26-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-26gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-27-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-27gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-28-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-28gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-29-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-29gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-30-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-30gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-31-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-31gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-32-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-32gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-33-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-33gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-34-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-34gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-35-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-35gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-36-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-36gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-37-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-37gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-38-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-38gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-39-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-39gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-40-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-40gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-41-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-41gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-42-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-42gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-43-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-43gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-44-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-44gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-45-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-45gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-46-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-46gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-47-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-47gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-48-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-48gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-49-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-49gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-50-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-50gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-51-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-51gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-52-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-52gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-53-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-53gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-54-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-54gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-55-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-55gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-56-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-56gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-57-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-57gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-58-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-58gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-59-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-59gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-60-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-60gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-61-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-61gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-62-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-62gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-63-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-63gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-64-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-64gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-65-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-65gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-66-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-66gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-67-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-67gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-68-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-68gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-69-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-69gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-70-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-70gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-71-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-71gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-72-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-72gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-73-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-73gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-74-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-74gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-75-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-75gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-76-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-76gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-77-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-77gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-78-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-78gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-79-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-79gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-80-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-80gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-81-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-81gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-82-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-82gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-83-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-83gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-84-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-84gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-85-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-85gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-86-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-86gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-87-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-87gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-88-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-88gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-89-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-89gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-9-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-90-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-90gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-91-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-91gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-92-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-92gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-93-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-93gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-94-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-94gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-95-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-95gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-96-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-96gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-97-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-97gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-98-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-98gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-99-s.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-99gs.js create mode 100644 external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-9gs.js (limited to 'external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3') diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-10-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-10-s.js new file mode 100644 index 000000000..f7a2543d2 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-10-s.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-10-s.js + * @description Strict Mode - checking 'this' (FunctionExpression includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var f = function () { + "use strict"; + return typeof this; +} +return f() === "undefined"; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-100-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-100-s.js new file mode 100644 index 000000000..03565a398 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-100-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-100-s.js + * @description Strict Mode - checking 'this' (strict function passed as arg to String.prototype.replace from non-strict context) + * @onlyStrict + */ + +function testcase() { +var x = 3; + +function f() { + "use strict"; + x = this; + return "a"; +} +return ("ab".replace("b", f)==="aa") && (x===undefined); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-100gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-100gs.js new file mode 100644 index 000000000..bbdc53d48 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-100gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2012 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-100gs.js + * @description Strict Mode - checking 'this' (strict function passed as arg to String.prototype.replace from non-strict context) + * @onlyStrict + */ +var x = 3; + +function f() { + "use strict"; + x = this; + return "a"; +} +if (("ab".replace("b", f)!=="aa") || (x!==undefined)) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-101-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-101-s.js new file mode 100644 index 000000000..761faefaf --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-101-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-101-s.js + * @description Strict Mode - checking 'this' (non-strict function passed as arg to String.prototype.replace from strict context) + * @onlyStrict + */ + +function testcase() { +var x = 3; + +function f() { + x = this; + return "a"; +} + +return (function() {"use strict"; return "ab".replace("b", f)==="aa";}()) && (x===fnGlobalObject()); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-101gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-101gs.js new file mode 100644 index 000000000..6abb89c36 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-101gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2012 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-101gs.js + * @description Strict Mode - checking 'this' (non-strict function passed as arg to String.prototype.replace from strict context) + * @onlyStrict + */ +var x = 3; + +function f() { + x = this; + return "a"; +} + +if ( (!(function() {"use strict"; return "ab".replace("b", f)==="aa";}())) || (x!==fnGlobalObject())) { + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-102-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-102-s.js new file mode 100644 index 000000000..cc8fc6870 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-102-s.js @@ -0,0 +1,38 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-102-s.js + * @description Strict Mode - checking 'this' (strict anonymous function passed as arg to String.prototype.replace from non-strict context) + * @onlyStrict + */ + +function testcase() { +var x = 3; + +return ("ab".replace("b", (function () { + "use strict"; + return function () { + x = this; + return "a"; + } + })())==="aa") && (x===undefined); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-102gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-102gs.js new file mode 100644 index 000000000..d049c76ca --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-102gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2012 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-102gs.js + * @description Strict Mode - checking 'this' (strict anonymous function passed as arg to String.prototype.replace from non-strict context) + * @onlyStrict + */ +var x = 3; +if ( ("ab".replace("b", (function () { + "use strict"; + return function () { + x = this; + return "a"; + } + })())!=="aa") || (x!==undefined)) { + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-10gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-10gs.js new file mode 100644 index 000000000..e89c04fef --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-10gs.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-10gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression includes strict directive prologue) + * @onlyStrict + */ + +var f = function () { + "use strict"; + return typeof this; +} +if (f() !== "undefined") { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-11-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-11-s.js new file mode 100644 index 000000000..f00a5c11d --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-11-s.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-11-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +return (function () { + return typeof this; +})() === "undefined"; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-11gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-11gs.js new file mode 100644 index 000000000..4dac505a5 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-11gs.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-11gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within strict mode) + * @onlyStrict + */ + +"use strict"; +if ((function () { + return typeof this; +})() !== "undefined") { + throw "'this' had incorrect value!"; +} + diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-12-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-12-s.js new file mode 100644 index 000000000..8299e2f6c --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-12-s.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-12-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +return (function () { + "use strict"; + return typeof this; +})() === "undefined"; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-12gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-12gs.js new file mode 100644 index 000000000..8805ce54e --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-12gs.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-12gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression includes strict directive prologue) + * @onlyStrict + */ + +if ((function () { + "use strict"; + return typeof this; +})() !== "undefined") { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-13-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-13-s.js new file mode 100644 index 000000000..b649a10a3 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-13-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-13-s.js + * @description Strict Mode - checking 'this' (Function constructor defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var f = Function("return typeof this;"); +return f() !== "undefined"; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-13gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-13gs.js new file mode 100644 index 000000000..b45081329 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-13gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-13gs.js + * @description Strict - checking 'this' from a global scope (Function constructor defined within strict mode) + * @onlyStrict + */ + +"use strict"; +var f = Function("return typeof this;"); +if (f() === "undefined") { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-14-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-14-s.js new file mode 100644 index 000000000..cac94e3da --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-14-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-14-s.js + * @description Strict Mode - checking 'this' (Function constructor includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var f = Function("\"use strict\";\nreturn typeof this;"); +return f() === "undefined"; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-14gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-14gs.js new file mode 100644 index 000000000..1a7d26e0c --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-14gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-14gs.js + * @description Strict - checking 'this' from a global scope (Function constructor includes strict directive prologue) + * @onlyStrict + */ + +var f = Function("\"use strict\";\nreturn typeof this;"); +if (f() !== "undefined") { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-15-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-15-s.js new file mode 100644 index 000000000..f4e079244 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-15-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-15-s.js + * @description Strict Mode - checking 'this' (New'ed Function constructor defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var f = new Function("return typeof this;"); +return f() !== "undefined"; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-15gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-15gs.js new file mode 100644 index 000000000..6f2b195cb --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-15gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-15gs.js + * @description Strict - checking 'this' from a global scope (New'ed Function constructor defined within strict mode) + * @onlyStrict + */ + +"use strict"; +var f = new Function("return typeof this;"); +if (f() === "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-16-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-16-s.js new file mode 100644 index 000000000..14f164d71 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-16-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-16-s.js + * @description Strict Mode - checking 'this' (New'ed Function constructor includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var f = new Function("\"use strict\";\nreturn typeof this;"); +return f() === "undefined"; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-16gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-16gs.js new file mode 100644 index 000000000..0cb39f63f --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-16gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-16gs.js + * @description Strict - checking 'this' from a global scope (New'ed Function constructor includes strict directive prologue) + * @onlyStrict + */ + +var f = new Function("\"use strict\";\nreturn typeof this;"); +if (f() !== "undefined") { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-17-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-17-s.js new file mode 100644 index 000000000..646bab4fd --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-17-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-17-s.js + * @description Strict Mode - checking 'this' (eval used within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +return (eval("typeof this") === "undefined") && (eval("this") !== fnGlobalObject()); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-17gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-17gs.js new file mode 100644 index 000000000..3bdefd51f --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-17gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-17gs.js + * @description Strict - checking 'this' from a global scope (eval used within strict mode) + * @onlyStrict + */ + +"use strict"; +if (eval("this") !== fnGlobalObject()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-19-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-19-s.js new file mode 100644 index 000000000..600f8e675 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-19-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-19-s.js + * @description Strict Mode - checking 'this' (indirect eval used within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var my_eval = eval; +return my_eval("this") === fnGlobalObject(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-19gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-19gs.js new file mode 100644 index 000000000..e919eb862 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-19gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-19gs.js + * @description Strict - checking 'this' from a global scope (indirect eval used within strict mode) + * @onlyStrict + */ + +"use strict"; +var my_eval = eval; +if (my_eval("this") !== fnGlobalObject()) { + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-20-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-20-s.js new file mode 100644 index 000000000..84d9131d9 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-20-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-20-s.js + * @description Strict Mode - checking 'this' (indirect eval includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var my_eval = eval; +return my_eval("\"use strict\";\nthis") === fnGlobalObject(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-20gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-20gs.js new file mode 100644 index 000000000..be9d69eb9 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-20gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-20gs.js + * @description Strict - checking 'this' from a global scope (indirect eval includes strict directive prologue) + * @onlyStrict + */ + +var my_eval = eval; +if (my_eval("\"use strict\";\nthis") !== fnGlobalObject() ) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-21-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-21-s.js new file mode 100644 index 000000000..c05c9e331 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-21-s.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-21-s.js + * @description Strict Mode - checking 'this' (New'ed object from FunctionDeclaration defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +function f() { + return this; +} +return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-21gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-21gs.js new file mode 100644 index 000000000..93f20d7db --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-21gs.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-21gs.js + * @description Strict - checking 'this' from a global scope (New'ed object from FunctionDeclaration defined within strict mode) + * @onlyStrict + */ + +"use strict"; +function f() { + return this; +} +if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { + throw "'this' had incorrect value!"; +} + diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-22-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-22-s.js new file mode 100644 index 000000000..3c6f00151 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-22-s.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-22-s.js + * @description Strict Mode - checking 'this' (New'ed object from FunctionDeclaration includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +function f() { + "use strict"; + return this; +} +return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); + +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-22gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-22gs.js new file mode 100644 index 000000000..a7df22eef --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-22gs.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-22gs.js + * @description Strict - checking 'this' from a global scope (New'ed object from FunctionDeclaration includes strict directive prologue) + * @onlyStrict + */ + +function f() { + "use strict"; + return this; +} +if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { + throw "'this' had incorrect value!"; +} + diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-23-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-23-s.js new file mode 100644 index 000000000..e7b2467de --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-23-s.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-23-s.js + * @description Strict Mode - checking 'this' (New'ed object from FunctionExpression defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var f = function () { + return this; +} +return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); + +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-23gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-23gs.js new file mode 100644 index 000000000..52857ff37 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-23gs.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-23gs.js + * @description Strict - checking 'this' from a global scope (New'ed object from FunctionExpression defined within strict mode) + * @onlyStrict + */ + +"use strict"; +var f = function () { + return this; +} +if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-24-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-24-s.js new file mode 100644 index 000000000..45161b7f2 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-24-s.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-24-s.js + * @description Strict Mode - checking 'this' (New'ed object from FunctionExpression includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var f = function () { + "use strict"; + return this; +} +return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-24gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-24gs.js new file mode 100644 index 000000000..8a658ce9b --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-24gs.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-24gs.js + * @description Strict - checking 'this' from a global scope (New'ed object from FunctionExpression includes strict directive prologue) + * @onlyStrict + */ + +var f = function () { + "use strict"; + return this; +} +if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-25-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-25-s.js new file mode 100644 index 000000000..c5fa5bd79 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-25-s.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-25-s.js + * @description Strict Mode - checking 'this' (New'ed object from Anonymous FunctionExpression defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var obj = new (function () { + return this; +}); +return (obj !== fnGlobalObject()) && ((typeof obj) !== "undefined"); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-25gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-25gs.js new file mode 100644 index 000000000..2c60ec1d4 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-25gs.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-25gs.js + * @description Strict - checking 'this' from a global scope (New'ed object from Anonymous FunctionExpression defined within strict mode) + * @onlyStrict + */ + +"use strict"; +var obj = new (function () { + return this; +}); +if ((obj === fnGlobalObject()) || (typeof obj === "undefined")) { + throw "'this' had incorrect value!"; +} + diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-26-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-26-s.js new file mode 100644 index 000000000..a1e01aa83 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-26-s.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-26-s.js + * @description Strict Mode - checking 'this' (New'ed object from Anonymous FunctionExpression includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var obj = new (function () { + "use strict"; + return this; +}); +return (obj !== fnGlobalObject()) && ((typeof obj) !== "undefined"); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-26gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-26gs.js new file mode 100644 index 000000000..832b1cc90 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-26gs.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-26gs.js + * @description Strict - checking 'this' from a global scope (New'ed object from Anonymous FunctionExpression includes strict directive prologue) + * @onlyStrict + */ + +var obj = new (function () { + "use strict"; + return this; +}); +if ((obj === fnGlobalObject()) || (typeof obj === "undefined")) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-27-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-27-s.js new file mode 100644 index 000000000..d91936f82 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-27-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-27-s.js + * @description Strict Mode - checking 'this' (FunctionDeclaration defined within a FunctionDeclaration inside strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +function f1() { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-27gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-27gs.js new file mode 100644 index 000000000..086079f2d --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-27gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-27gs.js + * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within a FunctionDeclaration inside strict mode) + * @onlyStrict + */ + +"use strict"; +function f1() { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-28-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-28-s.js new file mode 100644 index 000000000..c6600b113 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-28-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-28-s.js + * @description Strict Mode - checking 'this' (FunctionExpression defined within a FunctionDeclaration inside strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +function f1() { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-28gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-28gs.js new file mode 100644 index 000000000..a18f410c3 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-28gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-28gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression defined within a FunctionDeclaration inside strict mode) + * @onlyStrict + */ + +"use strict"; +function f1() { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-29-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-29-s.js new file mode 100644 index 000000000..315cd7da2 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-29-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-29-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within a FunctionDeclaration inside strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +function f1() { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-29gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-29gs.js new file mode 100644 index 000000000..5c0d23023 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-29gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-29gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within a FunctionDeclaration inside strict mode) + * @onlyStrict + */ + +"use strict"; +function f1() { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-30-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-30-s.js new file mode 100644 index 000000000..d5baf6e00 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-30-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-30-s.js + * @description Strict Mode - checking 'this' (FunctionDeclaration defined within a FunctionExpression inside strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var f1 = function () { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-30gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-30gs.js new file mode 100644 index 000000000..984fe11e3 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-30gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-30gs.js + * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within a FunctionExpression inside strict mode) + * @onlyStrict + */ + +"use strict"; +var f1 = function () { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-31-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-31-s.js new file mode 100644 index 000000000..05ebcb53e --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-31-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-31-s.js + * @description Strict Mode - checking 'this' (FunctionExpression defined within a FunctionExpression inside strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var f1 = function () { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-31gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-31gs.js new file mode 100644 index 000000000..54813afb8 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-31gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-31gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression defined within a FunctionExpression inside strict mode) + * @onlyStrict + */ + +"use strict"; +var f1 = function () { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-32-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-32-s.js new file mode 100644 index 000000000..cc7d6ef19 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-32-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-32-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within a FunctionExpression inside strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var f1 = function () { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-32gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-32gs.js new file mode 100644 index 000000000..e3bf2212e --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-32gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-32gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within a FunctionExpression inside strict mode) + * @onlyStrict + */ + +"use strict"; +var f1 = function () { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-33-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-33-s.js new file mode 100644 index 000000000..1a95f8c95 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-33-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-33-s.js + * @description Strict Mode - checking 'this' (FunctionDeclaration defined within an Anonymous FunctionExpression inside strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +return (function () { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-33gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-33gs.js new file mode 100644 index 000000000..5b906db36 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-33gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-33gs.js + * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within an Anonymous FunctionExpression inside strict mode) + * @onlyStrict + */ + +"use strict"; +if (! ((function () { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-34-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-34-s.js new file mode 100644 index 000000000..f6ff5cfd8 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-34-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-34-s.js + * @description Strict Mode - checking 'this' (FunctionExpression defined within an Anonymous FunctionExpression inside strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +return (function () { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-34gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-34gs.js new file mode 100644 index 000000000..e807a3d1d --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-34gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-34gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression defined within an Anonymous FunctionExpression inside strict mode) + * @onlyStrict + */ + +"use strict"; +if (! ((function () { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-35-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-35-s.js new file mode 100644 index 000000000..069836d0e --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-35-s.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-35-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within an Anonymous FunctionExpression inside strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +return (function () { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-35gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-35gs.js new file mode 100644 index 000000000..d4d7d5c8d --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-35gs.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-35gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within an Anonymous FunctionExpression inside strict mode) + * @onlyStrict + */ + +"use strict"; +if (! ((function () { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-36-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-36-s.js new file mode 100644 index 000000000..43326dbf2 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-36-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-36-s.js + * @description Strict Mode - checking 'this' (FunctionDeclaration defined within a FunctionDeclaration with a strict directive prologue) + * @onlyStrict + */ + +function testcase() { +function f1() { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-36gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-36gs.js new file mode 100644 index 000000000..9b3705148 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-36gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-36gs.js + * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within a FunctionDeclaration with a strict directive prologue) + * @onlyStrict + */ + +function f1() { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-37-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-37-s.js new file mode 100644 index 000000000..500d52552 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-37-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-37-s.js + * @description Strict Mode - checking 'this' (FunctionExpression defined within a FunctionDeclaration with a strict directive prologue) + * @onlyStrict + */ + +function testcase() { +function f1() { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-37gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-37gs.js new file mode 100644 index 000000000..4f44eba21 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-37gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-37gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression defined within a FunctionDeclaration with a strict directive prologue) + * @onlyStrict + */ + +function f1() { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-38-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-38-s.js new file mode 100644 index 000000000..8b08a3fde --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-38-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-38-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within a FunctionDeclaration with a strict directive prologue) + * @onlyStrict + */ + +function testcase() { +function f1() { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-38gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-38gs.js new file mode 100644 index 000000000..c98e18f2d --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-38gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-38gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within a FunctionDeclaration with a strict directive prologue) + * @onlyStrict + */ + +function f1() { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-39-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-39-s.js new file mode 100644 index 000000000..24e00c147 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-39-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-39-s.js + * @description Strict Mode - checking 'this' (FunctionDeclaration defined within a FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var f1 = function () { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-39gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-39gs.js new file mode 100644 index 000000000..190484919 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-39gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-39gs.js + * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within a FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +var f1 = function () { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-40-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-40-s.js new file mode 100644 index 000000000..375751c4b --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-40-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-40-s.js + * @description Strict Mode - checking 'this' (FunctionExpression defined within a FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var f1 = function () { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-40gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-40gs.js new file mode 100644 index 000000000..33d59dfe2 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-40gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-40gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression defined within a FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +var f1 = function () { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-41-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-41-s.js new file mode 100644 index 000000000..94767f920 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-41-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-41-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within a FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var f1 = function () { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-41gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-41gs.js new file mode 100644 index 000000000..ddbbc2023 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-41gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-41gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within a FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +var f1 = function () { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-42-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-42-s.js new file mode 100644 index 000000000..9de6360bd --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-42-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-42-s.js + * @description Strict Mode - checking 'this' (FunctionDeclaration defined within an Anonymous FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +function testcase() { +return (function () { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-42gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-42gs.js new file mode 100644 index 000000000..8d6518ae2 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-42gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-42gs.js + * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within an Anonymous FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +if (! ((function () { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-43-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-43-s.js new file mode 100644 index 000000000..7e1f92591 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-43-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-43-s.js + * @description Strict Mode - checking 'this' (FunctionExpression defined within an Anonymous FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +function testcase() { +return (function () { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-43gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-43gs.js new file mode 100644 index 000000000..7ac8f22df --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-43gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-43gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression defined within an Anonymous FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +if (! ((function () { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-44-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-44-s.js new file mode 100644 index 000000000..10f1961ab --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-44-s.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-44-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within an Anonymous FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +function testcase() { +return (function () { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-44gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-44gs.js new file mode 100644 index 000000000..558cc3b0a --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-44gs.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-44gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within an Anonymous FunctionExpression with a strict directive prologue) + * @onlyStrict + */ + +if (! ((function () { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-45-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-45-s.js new file mode 100644 index 000000000..171448218 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-45-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-45-s.js + * @description Strict Mode - checking 'this' (FunctionDeclaration with a strict directive prologue defined within a FunctionDeclaration) + * @onlyStrict + */ + +function testcase() { +function f1() { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-45gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-45gs.js new file mode 100644 index 000000000..6d13c6a51 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-45gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-45gs.js + * @description Strict - checking 'this' from a global scope (FunctionDeclaration with a strict directive prologue defined within a FunctionDeclaration) + * @onlyStrict + */ + +function f1() { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-46-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-46-s.js new file mode 100644 index 000000000..4013696be --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-46-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-46-s.js + * @description Strict Mode - checking 'this' (FunctionExpression with a strict directive prologue defined within a FunctionDeclaration) + * @onlyStrict + */ + +function testcase() { +function f1() { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-46gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-46gs.js new file mode 100644 index 000000000..c6dd78079 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-46gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-46gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression with a strict directive prologue defined within a FunctionDeclaration) + * @onlyStrict + */ + +function f1() { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-47-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-47-s.js new file mode 100644 index 000000000..9d90c74bc --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-47-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-47-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression with a strict directive prologue defined within a FunctionDeclaration) + * @onlyStrict + */ + +function testcase() { +function f1() { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-47gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-47gs.js new file mode 100644 index 000000000..10e2b1b98 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-47gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-47gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression with a strict directive prologue defined within a FunctionDeclaration) + * @onlyStrict + */ + +function f1() { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-48-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-48-s.js new file mode 100644 index 000000000..efd4647ec --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-48-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-48-s.js + * @description Strict Mode - checking 'this' (FunctionDeclaration with a strict directive prologue defined within a FunctionExpression) + * @onlyStrict + */ + +function testcase() { +var f1 = function () { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-48gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-48gs.js new file mode 100644 index 000000000..d2c91f087 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-48gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-48gs.js + * @description Strict - checking 'this' from a global scope (FunctionDeclaration with a strict directive prologue defined within a FunctionExpression) + * @onlyStrict + */ + +var f1 = function () { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-49-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-49-s.js new file mode 100644 index 000000000..c87373005 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-49-s.js @@ -0,0 +1,37 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-49-s.js + * @description Strict Mode - checking 'this' (FunctionExpression with a strict directive prologue defined within a FunctionExpression) + * @onlyStrict + */ + +function testcase() { +var f1 = function () { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-49gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-49gs.js new file mode 100644 index 000000000..af7a98baf --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-49gs.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-49gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression with a strict directive prologue defined within a FunctionExpression) + * @onlyStrict + */ + +var f1 = function () { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-50-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-50-s.js new file mode 100644 index 000000000..c1fd02448 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-50-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-50-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression with a strict directive prologue defined within a FunctionExpression) + * @onlyStrict + */ + +function testcase() { +var f1 = function () { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-50gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-50gs.js new file mode 100644 index 000000000..cb30fbea1 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-50gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-50gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression with a strict directive prologue defined within a FunctionExpression) + * @onlyStrict + */ + +var f1 = function () { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-51-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-51-s.js new file mode 100644 index 000000000..9908b67cb --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-51-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-51-s.js + * @description Strict Mode - checking 'this' (FunctionDeclaration with a strict directive prologue defined within an Anonymous FunctionExpression) + * @onlyStrict + */ + +function testcase() { +return (function () { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-51gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-51gs.js new file mode 100644 index 000000000..7024f385e --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-51gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-51gs.js + * @description Strict - checking 'this' from a global scope (FunctionDeclaration with a strict directive prologue defined within an Anonymous FunctionExpression) + * @onlyStrict + */ + +if (! ((function () { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +})())) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-52-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-52-s.js new file mode 100644 index 000000000..565d5d539 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-52-s.js @@ -0,0 +1,36 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-52-s.js + * @description Strict Mode - checking 'this' (FunctionExpression with a strict directive prologue defined within an Anonymous FunctionExpression) + * @onlyStrict + */ + +function testcase() { +return (function () { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-52gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-52gs.js new file mode 100644 index 000000000..46df6d64d --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-52gs.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-52gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression with a strict directive prologue defined within an Anonymous FunctionExpression) + * @onlyStrict + */ + +if (! ((function () { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +})())) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-53-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-53-s.js new file mode 100644 index 000000000..d7c32ee82 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-53-s.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-53-s.js + * @description Strict Mode - checking 'this' (Anonymous FunctionExpression with a strict directive prologue defined within an Anonymous FunctionExpression) + * @onlyStrict + */ + +function testcase() { +return (function () { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-53gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-53gs.js new file mode 100644 index 000000000..74620fb77 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-53gs.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-53gs.js + * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression with a strict directive prologue defined within an Anonymous FunctionExpression) + * @onlyStrict + */ + +if (! ((function () { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +})())) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-54-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-54-s.js new file mode 100644 index 000000000..343066554 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-54-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-54-s.js + * @description Strict Mode - checking 'this' (Literal getter defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var o = { get foo() { return this; } } +return o.foo===o; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-54gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-54gs.js new file mode 100644 index 000000000..94e2fcb04 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-54gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-54gs.js + * @description Strict - checking 'this' from a global scope (Literal getter defined within strict mode) + * @onlyStrict + */ + +"use strict"; +var o = { get foo() { return this; } } +if (o.foo!==o) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-55-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-55-s.js new file mode 100644 index 000000000..507372068 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-55-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-55-s.js + * @description Strict Mode - checking 'this' (Literal getter includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var o = { get foo() { "use strict"; return this; } } +return o.foo===o; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-55gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-55gs.js new file mode 100644 index 000000000..669b42b71 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-55gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-55gs.js + * @description Strict - checking 'this' from a global scope (Literal getter includes strict directive prologue) + * @onlyStrict + */ + +var o = { get foo() { "use strict"; return this; } } +if (o.foo!==o) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-56-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-56-s.js new file mode 100644 index 000000000..f4d98309f --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-56-s.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-56-s.js + * @description Strict Mode - checking 'this' (Literal setter defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var x = 2; +var o = { set foo(stuff) { x=this; } } +o.foo = 3; +return x===o; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-56gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-56gs.js new file mode 100644 index 000000000..5e9e762ce --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-56gs.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-56gs.js + * @description Strict - checking 'this' from a global scope (Literal setter defined within strict mode) + * @onlyStrict + */ + +"use strict"; +var x = 2; +var o = { set foo(stuff) { x=this; } } +o.foo = 3; +if (x!==o) { + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-57-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-57-s.js new file mode 100644 index 000000000..1b16bd4a0 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-57-s.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-57-s.js + * @description Strict Mode - checking 'this' (Literal setter includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var x = 2; +var o = { set foo(stuff) { "use strict"; x=this; } } +o.foo = 3; +return x===o; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-57gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-57gs.js new file mode 100644 index 000000000..92318154f --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-57gs.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-57gs.js + * @description Strict - checking 'this' from a global scope (Literal setter includes strict directive prologue) + * @onlyStrict + */ + +var x = 2; +var o = { set foo(stuff) { "use strict"; x=this; } } +o.foo = 3; +if (x!==o) { + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-58-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-58-s.js new file mode 100644 index 000000000..54ba866eb --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-58-s.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-58-s.js + * @description Strict Mode - checking 'this' (Injected getter defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var o = {}; +Object.defineProperty(o, "foo", { get: function() { return this; } }); +return o.foo===o; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-58gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-58gs.js new file mode 100644 index 000000000..75cf067dd --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-58gs.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-58gs.js + * @description Strict - checking 'this' from a global scope (Injected getter defined within strict mode) + * @onlyStrict + */ + +"use strict"; +var o = {}; +Object.defineProperty(o, "foo", { get : function() { return this; } }); +if (o.foo!==o) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-59-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-59-s.js new file mode 100644 index 000000000..620a003ca --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-59-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-59-s.js + * @description Strict Mode - checking 'this' (Injected getter includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var o = {}; +Object.defineProperty(o, "foo", { get: function() { "use strict"; return this; } }); +return o.foo===o; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-59gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-59gs.js new file mode 100644 index 000000000..7d900bdbc --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-59gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-59gs.js + * @description Strict - checking 'this' from a global scope (Injected getter includes strict directive prologue) + * @onlyStrict + */ + +var o = {}; +Object.defineProperty(o, "foo", { get: function() { "use strict"; return this; } }); +if (o.foo!==o) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-60-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-60-s.js new file mode 100644 index 000000000..66887c15a --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-60-s.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-60-s.js + * @description Strict Mode - checking 'this' (Injected setter defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var o = {}; +var x = 2; +Object.defineProperty(o, "foo", { set: function(stuff) { x=this; } }); +o.foo = 3; +return x===o; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-60gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-60gs.js new file mode 100644 index 000000000..2698998a4 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-60gs.js @@ -0,0 +1,33 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-60gs.js + * @description Strict - checking 'this' from a global scope (Injected setter defined within strict mode) + * @onlyStrict + */ + +"use strict"; +var o = {}; +var x = 2; +Object.defineProperty(o, "foo", { set: function(stuff) { x=this; } }); +o.foo = 3; +if (x!==o) { + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-61-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-61-s.js new file mode 100644 index 000000000..d1196b32a --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-61-s.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-61-s.js + * @description Strict Mode - checking 'this' (Injected setter includes strict directive prologue) + * @onlyStrict + */ + +function testcase() { +var o = {}; +var x = 2; +Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; x=this; } }); +o.foo = 3; +return x===o; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-61gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-61gs.js new file mode 100644 index 000000000..3a58b06ff --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-61gs.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-61gs.js + * @description Strict - checking 'this' from a global scope (Injected setter includes strict directive prologue) + * @onlyStrict + */ + +var o = {}; +var x = 2; +Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; x=this; } }); +o.foo = 3; +if (x!==o) { + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-62-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-62-s.js new file mode 100644 index 000000000..df5f32499 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-62-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-62-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by non-strict function declaration) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this;}; +function foo() { return f();} +return foo()===undefined; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-62gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-62gs.js new file mode 100644 index 000000000..c94f0a08f --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-62gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-62gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by non-strict function declaration) + * @onlyStrict + */ + +function f() { "use strict"; return this;}; +function foo() { return f();} +if (foo()!==undefined){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-63-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-63-s.js new file mode 100644 index 000000000..70ca76a81 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-63-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-63-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by non-strict eval) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return eval("f();"); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-63gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-63gs.js new file mode 100644 index 000000000..4a3df98a8 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-63gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-63gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by non-strict eval) + * @onlyStrict + */ + +function f() { "use strict"; return this===undefined;}; +if (! eval("f();")){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-64-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-64-s.js new file mode 100644 index 000000000..fc60bb099 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-64-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-64-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by non-strict Function constructor) + * @onlyStrict + */ + +function testcase() { +fnGlobalObject().f = function() { "use strict"; return this===undefined;}; +return Function("return f();")(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-64gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-64gs.js new file mode 100644 index 000000000..f5de73961 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-64gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-64gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by non-strict Function constructor) + * @onlyStrict + */ + +function f() { "use strict"; return this===undefined;}; +if (! (Function("return f();")())){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-65-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-65-s.js new file mode 100644 index 000000000..b8ed88308 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-65-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-65-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by non-strict new'ed Function constructor) + * @onlyStrict + */ + +function testcase() { +fnGlobalObject().f = function() { "use strict"; return this===undefined;}; +return (new Function("return f();"))(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-65gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-65gs.js new file mode 100644 index 000000000..7babdbd7c --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-65gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-65gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by non-strict new'ed Function constructor) + * @onlyStrict + */ + +function f() { "use strict"; return this===undefined;}; +if (! ( (new Function("return f();")) () )){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-66-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-66-s.js new file mode 100644 index 000000000..d10a6fd16 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-66-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-66-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.apply()) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.apply(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-66gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-66gs.js new file mode 100644 index 000000000..77e7b5d0e --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-66gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-66gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.apply()) + * @onlyStrict + */ + +function f() { "use strict"; return this===undefined;}; +if (! f.apply()){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-67-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-67-s.js new file mode 100644 index 000000000..64a4269b7 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-67-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-67-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.apply(null)) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this===null;}; +return f.apply(null); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-67gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-67gs.js new file mode 100644 index 000000000..c808ca5c7 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-67gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-67gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.apply(null)) + * @onlyStrict + */ + +function f() { "use strict"; return this===null;}; +if (! f.apply(null)){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-68-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-68-s.js new file mode 100644 index 000000000..d83b04a31 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-68-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-68-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.apply(undefined)) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.apply(undefined); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-68gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-68gs.js new file mode 100644 index 000000000..0106f3f9a --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-68gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-68gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.apply(undefined)) + * @onlyStrict + */ + +function f() { "use strict"; return this===undefined;}; +if (! f.apply(undefined)){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-69-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-69-s.js new file mode 100644 index 000000000..2c011b50e --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-69-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-69-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.apply(someObject)) + * @onlyStrict + */ + +function testcase() { +var o = {}; +function f() { "use strict"; return this===o;}; +return f.apply(o); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-69gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-69gs.js new file mode 100644 index 000000000..47ed693df --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-69gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-69gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.apply(someObject)) + * @onlyStrict + */ + +var o = {}; +function f() { "use strict"; return this===o;}; +if (! f.apply(o)){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-70-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-70-s.js new file mode 100644 index 000000000..8b6ad9bac --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-70-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-70-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.apply(globalObject)) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this;}; +return f.apply(fnGlobalObject()) === fnGlobalObject(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-70gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-70gs.js new file mode 100644 index 000000000..17b8c5c01 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-70gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-70gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.apply(globalObject)) + * @onlyStrict + */ + +function f() { "use strict"; return this;}; +if (f.apply(fnGlobalObject()) !== fnGlobalObject()){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-71-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-71-s.js new file mode 100644 index 000000000..ee94f1385 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-71-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-71-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.call()) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.call(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-71gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-71gs.js new file mode 100644 index 000000000..a2aab5192 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-71gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-71gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call()) + * @onlyStrict + */ + +function f() { "use strict"; return this===undefined;}; +if (! f.call()){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-72-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-72-s.js new file mode 100644 index 000000000..86688a310 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-72-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-72-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.call(null)) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this===null;}; +return f.call(null); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-72gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-72gs.js new file mode 100644 index 000000000..33f1b4ba4 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-72gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-72gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call(null)) + * @onlyStrict + */ + +function f() { "use strict"; return this===null;}; +if (! f.call(null)){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-73-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-73-s.js new file mode 100644 index 000000000..341dae71d --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-73-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-73-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.call(undefined)) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.call(undefined); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-73gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-73gs.js new file mode 100644 index 000000000..f37cc4326 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-73gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-73gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call(undefined)) + * @onlyStrict + */ + +function f() { "use strict"; return this===undefined;}; +if (! f.call(undefined)){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-74-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-74-s.js new file mode 100644 index 000000000..7c03a5f64 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-74-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-74-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.call(someObject)) + * @onlyStrict + */ + +function testcase() { +var o = {}; +function f() { "use strict"; return this===o;}; +return f.call(o); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-74gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-74gs.js new file mode 100644 index 000000000..b60af0d1b --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-74gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-74gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call(someObject)) + * @onlyStrict + */ + +var o = {}; +function f() { "use strict"; return this===o;}; +if (! f.call(o)){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-75-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-75-s.js new file mode 100644 index 000000000..68553162e --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-75-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-75-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.call(globalObject)) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this;}; +return f.call(fnGlobalObject()) === fnGlobalObject(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-75gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-75gs.js new file mode 100644 index 000000000..9218e1b53 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-75gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-75gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call(globalObject)) + * @onlyStrict + */ + +function f() { "use strict"; return this;}; +if (f.call(fnGlobalObject()) !== fnGlobalObject()){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-76-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-76-s.js new file mode 100644 index 000000000..fba925f2b --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-76-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-76-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.bind()()) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.bind()(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-76gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-76gs.js new file mode 100644 index 000000000..d0fcea66a --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-76gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-76gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind()()) + * @onlyStrict + */ + +function f() { "use strict"; return this===undefined;}; +if (! (f.bind()())){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-77-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-77-s.js new file mode 100644 index 000000000..6e9959ca0 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-77-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-77-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.bind(null)()) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this===null;}; +return f.bind(null)(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-77gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-77gs.js new file mode 100644 index 000000000..0da430f78 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-77gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-77gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind(null)()) + * @onlyStrict + */ + +function f() { "use strict"; return this===null;}; +if (! (f.bind(null)())){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-78-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-78-s.js new file mode 100644 index 000000000..5bf13e159 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-78-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-78-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.bind(undefined)()) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.bind(undefined)(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-78gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-78gs.js new file mode 100644 index 000000000..dab370f6b --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-78gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-78gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind(undefined)()) + * @onlyStrict + */ + +function f() { "use strict"; return this===undefined;}; +if (! (f.bind(undefined)())){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-79-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-79-s.js new file mode 100644 index 000000000..dc6e58513 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-79-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-79-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.bind(someObject)()) + * @onlyStrict + */ + +function testcase() { +var o = {}; +function f() { "use strict"; return this===o;}; +return f.bind(o)(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-79gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-79gs.js new file mode 100644 index 000000000..440ef17b4 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-79gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-79gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind(someObject)()) + * @onlyStrict + */ + +var o = {}; +function f() { "use strict"; return this===o;}; +if (! (f.bind(o)())){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-80-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-80-s.js new file mode 100644 index 000000000..d406018ed --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-80-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-80-s.js + * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.bind(globalObject)()) + * @onlyStrict + */ + +function testcase() { +function f() { "use strict"; return this;}; +return f.bind(fnGlobalObject())() === fnGlobalObject(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-80gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-80gs.js new file mode 100644 index 000000000..b19a14222 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-80gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-80gs.js + * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind(globalObject)()) + * @onlyStrict + */ + +function f() { "use strict"; return this;}; +if (f.bind(fnGlobalObject())() !== fnGlobalObject()){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-81-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-81-s.js new file mode 100644 index 000000000..77a5e2c6a --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-81-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-81-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict function declaration) + * @onlyStrict + */ + +function testcase() { +function f() { return this!==undefined;}; +function foo() { "use strict"; return f();} +return foo(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-81gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-81gs.js new file mode 100644 index 000000000..c4f37c698 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-81gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-81gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict function declaration) + * @onlyStrict + */ + +function f() { return this!==undefined;}; +function foo() { "use strict"; return f();} +if (! foo()){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-82-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-82-s.js new file mode 100644 index 000000000..f14caca28 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-82-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-82-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict eval) + * @onlyStrict + */ + +function testcase() { +function f() { return this!==undefined;}; +return (function () {"use strict"; return eval("f();");})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-82gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-82gs.js new file mode 100644 index 000000000..d07bf0bad --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-82gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-82gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict eval) + * @onlyStrict + */ + +function f() { return this!==undefined;}; +if (! ((function () {"use strict"; return eval("f();");})()) ){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-83-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-83-s.js new file mode 100644 index 000000000..b40b8dce6 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-83-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-83-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function constructor) + * @onlyStrict + */ + +function testcase() { +fnGlobalObject().f = function() {return this!==undefined;}; +return (function () {return Function("\"use strict\";return f();")();})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-83gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-83gs.js new file mode 100644 index 000000000..c617fba99 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-83gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-83gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function constructor) + * @onlyStrict + */ + +function f() {return this!==undefined;}; +if (! ((function () {return Function("\"use strict\";return f();")();})()) ){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-84-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-84-s.js new file mode 100644 index 000000000..bd4ad7cc3 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-84-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-84-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict new'ed Function constructor) + * @onlyStrict + */ + +function testcase() { +fnGlobalObject().f = function() { return this!==undefined;}; +return (function () {return new Function("\"use strict\";return f();")();})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-84gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-84gs.js new file mode 100644 index 000000000..9a3d8297f --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-84gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-84gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict new'ed Function constructor) + * @onlyStrict + */ + +function f() { return this!==undefined;}; +if (! ((function () {return new Function("\"use strict\";return f();")();})()) ){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-85-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-85-s.js new file mode 100644 index 000000000..b337c11b7 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-85-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-85-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.apply()) + * @onlyStrict + */ + +function testcase() { +function f() { return this!==undefined;}; +return (function () {"use strict"; return f.apply();})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-85gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-85gs.js new file mode 100644 index 000000000..c8e2810cf --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-85gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-85gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.apply()) + * @onlyStrict + */ + +function f() { return this!==undefined;}; +if (! ((function () {"use strict"; return f.apply();})())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-86-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-86-s.js new file mode 100644 index 000000000..2002e9965 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-86-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-86-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.apply(null)) + * @onlyStrict + */ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.apply(null);})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-86gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-86gs.js new file mode 100644 index 000000000..b8b914e6c --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-86gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-86gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.apply(null)) + * @onlyStrict + */ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.apply(null);})())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-87-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-87-s.js new file mode 100644 index 000000000..08c7912cd --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-87-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-87-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.apply(undefined)) + * @onlyStrict + */ + +function testcase() { +function f() { return this===fnGlobalObject()}; +return (function () {"use strict"; return f.apply(undefined);})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-87gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-87gs.js new file mode 100644 index 000000000..058e0a198 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-87gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-87gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.apply(undefined)) + * @onlyStrict + */ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.apply(undefined);})())){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-88-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-88-s.js new file mode 100644 index 000000000..a01414742 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-88-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-88-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.apply(someObject)) + * @onlyStrict + */ + +function testcase() { +var o = {}; +function f() { return this===o;}; +return (function () {"use strict"; return f.apply(o);})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-88gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-88gs.js new file mode 100644 index 000000000..01db70049 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-88gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-88gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.apply(someObject)) + * @onlyStrict + */ + +var o = {}; +function f() { return this===o;}; +if (! ((function () {"use strict"; return f.apply(o);})())){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-89-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-89-s.js new file mode 100644 index 000000000..5b48014a8 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-89-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-89-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.apply(globalObject)) + * @onlyStrict + */ + +function testcase() { +function f() { return this;}; +return (function () {"use strict"; return f.apply(fnGlobalObject()); })() === fnGlobalObject(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-89gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-89gs.js new file mode 100644 index 000000000..e1317c975 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-89gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-89gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.apply(globalObject)) + * @onlyStrict + */ + +function f() { return this;}; +if ((function () {"use strict"; return f.apply(fnGlobalObject());})() !== fnGlobalObject()){ + throw "'this' had incorrect value!"; +} \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-9-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-9-s.js new file mode 100644 index 000000000..b692ad187 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-9-s.js @@ -0,0 +1,34 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-9-s.js + * @description Strict Mode - checking 'this' (FunctionExpression defined within strict mode) + * @onlyStrict + */ + +function testcase() { +"use strict"; +var f = function () { + return typeof this; +} +return f() === "undefined"; +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-90-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-90-s.js new file mode 100644 index 000000000..77d6cc8ff --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-90-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-90-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.call()) + * @onlyStrict + */ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.call(); })(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-90gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-90gs.js new file mode 100644 index 000000000..48a8fff6c --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-90gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-90gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.call()) + * @onlyStrict + */ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.call();})())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-91-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-91-s.js new file mode 100644 index 000000000..7c2d4d913 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-91-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-91-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.call(null)) + * @onlyStrict + */ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.call(null); })(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-91gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-91gs.js new file mode 100644 index 000000000..fbcb7e186 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-91gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-91gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.call(null)) + * @onlyStrict + */ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.call(null); })())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-92-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-92-s.js new file mode 100644 index 000000000..2e65d20cf --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-92-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-92-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.call(undefined)) + * @onlyStrict + */ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.call(undefined);})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-92gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-92gs.js new file mode 100644 index 000000000..c9625b34d --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-92gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-92gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.call(undefined)) + * @onlyStrict + */ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.call(undefined);})())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-93-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-93-s.js new file mode 100644 index 000000000..f055e795c --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-93-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-93-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.call(someObject)) + * @onlyStrict + */ + +function testcase() { +var o = {}; +function f() { return this===o;}; +return (function () {"use strict"; return f.call(o); })(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-93gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-93gs.js new file mode 100644 index 000000000..3f05fadbe --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-93gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-93gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.call(someObject)) + * @onlyStrict + */ + +var o = {}; +function f() { return this===o;}; +if (! ((function () {"use strict"; return f.call(o); })())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-94-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-94-s.js new file mode 100644 index 000000000..5f8f96b25 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-94-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-94-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.call(globalObject)) + * @onlyStrict + */ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.call(fnGlobalObject());})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-94gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-94gs.js new file mode 100644 index 000000000..f8ddd4113 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-94gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-94gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.call(globalObject)) + * @onlyStrict + */ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.call(fnGlobalObject());})())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-95-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-95-s.js new file mode 100644 index 000000000..8355cce22 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-95-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-95-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.bind()()) + * @onlyStrict + */ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.bind()(); })(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-95gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-95gs.js new file mode 100644 index 000000000..5d5fe280a --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-95gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-95gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.bind()()) + * @onlyStrict + */ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.bind()(); })())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-96-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-96-s.js new file mode 100644 index 000000000..01cad6650 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-96-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-96-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.bind(null)()) + * @onlyStrict + */ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.bind(null)(); })(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-96gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-96gs.js new file mode 100644 index 000000000..8a95144e9 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-96gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-96gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.bind(null)()) + * @onlyStrict + */ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.bind(null)(); })())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-97-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-97-s.js new file mode 100644 index 000000000..b7daed489 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-97-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-97-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.bind(undefined)()) + * @onlyStrict + */ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.bind(undefined)();})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-97gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-97gs.js new file mode 100644 index 000000000..2133adf18 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-97gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-97gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.bind(undefined)()) + * @onlyStrict + */ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.bind(undefined)(); })())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-98-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-98-s.js new file mode 100644 index 000000000..e4a05ff50 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-98-s.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-98-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.bind(someObject)()) + * @onlyStrict + */ + +function testcase() { +var o = {}; +function f() { return this===o;}; +return (function () {"use strict"; return f.bind(o)();})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-98gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-98gs.js new file mode 100644 index 000000000..9de8ece66 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-98gs.js @@ -0,0 +1,30 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-98gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.bind(someObject)()) + * @onlyStrict + */ + +var o = {}; +function f() { return this===o;}; +if (! ((function () {"use strict"; return f.bind(o)();})())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-99-s.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-99-s.js new file mode 100644 index 000000000..2e64fc80e --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-99-s.js @@ -0,0 +1,31 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @path ch10/10.4/10.4.3/10.4.3-1-99-s.js + * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.bind(globalObject)()) + * @onlyStrict + */ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.bind(fnGlobalObject())();})(); +} +runTestCase(testcase); \ No newline at end of file diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-99gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-99gs.js new file mode 100644 index 000000000..feb7e6f57 --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-99gs.js @@ -0,0 +1,29 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-99gs.js + * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.bind(globalObject)()) + * @onlyStrict + */ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.bind(fnGlobalObject())();})())){ + throw "'this' had incorrect value!"; +} diff --git a/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-9gs.js b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-9gs.js new file mode 100644 index 000000000..d9422091d --- /dev/null +++ b/external/contributions/Microsoft/ietcLatest/TestCases/ch10/10.4/10.4.3/10.4.3-1-9gs.js @@ -0,0 +1,32 @@ +/// Copyright (c) 2011 Microsoft Corporation +/// +/// Redistribution and use in source and binary forms, with or without modification, are permitted provided +/// that the following conditions are met: +/// * Redistributions of source code must retain the above copyright notice, this list of conditions and +/// the following disclaimer. +/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +/// the following disclaimer in the documentation and/or other materials provided with the distribution. +/// * Neither the name of Microsoft nor the names of its contributors may be used to +/// endorse or promote products derived from this software without specific prior written permission. +/// +/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/** + * @path ch10/10.4/10.4.3/10.4.3-1-9gs.js + * @description Strict - checking 'this' from a global scope (FunctionExpression defined within strict mode) + * @onlyStrict + */ + +"use strict"; +var f = function () { + return typeof this; +} +if (f() !== "undefined") { + throw "'this' had incorrect value!"; +} \ No newline at end of file -- cgit v1.2.3