Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
f27fc87
Fetch from upstream, resolve conflicts
munichmule Sep 25, 2014
96144e1
Roll back interop exception improvement in order to make as separate …
auz34 Sep 25, 2014
c816d51
Remove todo comment
auz34 Sep 25, 2014
e6c3234
Have single recursion related excecption instead of two of them
auz34 Sep 25, 2014
b650114
We do not need to compare CallExpression for equality
auz34 Sep 25, 2014
e28dcd5
Rename and adjust MaxRecursionDepth method in order to improve config…
auz34 Sep 26, 2014
66959b3
Merge pull request #72 from auz34/master
sebastienros Sep 26, 2014
6ed2d25
Merge branch 'master' of https://github.com/sebastienros/jint
honestegg Sep 26, 2014
43e2331
Allow null values for nullable types
honestegg Sep 26, 2014
af93991
Merge pull request #90 from honestegg/Null-check-in-type-converter
sebastienros Sep 26, 2014
88290b6
Resolve new merge conflicts, add pessimistic lock
munichmule Sep 29, 2014
7d6bdab
Merge pull request #77 from h15ter/master
sebastienros Sep 29, 2014
9109e22
Ignoring HTML comments
sebastienros Oct 1, 2014
27dcf89
Fixing failed unit tests
sebastienros Oct 1, 2014
9fe1402
Allow entire .NET DateTime range for Date
honestegg Oct 1, 2014
865d124
Merge pull request #94 from honestegg/use-complete-datetime-range
sebastienros Oct 2, 2014
1cbcf7a
Update README.md
sebastienros Oct 2, 2014
ac7a203
Bumping version number
sebastienros Oct 1, 2014
83a32d6
#95: Fixing interop calls returning incompatible types
sebastienros Oct 2, 2014
e0d057c
.NET params
postromantic Oct 5, 2014
ea1af0e
Adding WP8.1 target profile support
sebastienros Oct 8, 2014
3aba291
Merge pull request #97 from postromantic/feature/params
sebastienros Oct 14, 2014
1a83e8c
#98: Fixing Json array parsing
sebastienros Oct 14, 2014
375dae4
Bumping version number to 2.4.0
sebastienros Oct 14, 2014
12f6183
Updating nuspec
sebastienros Oct 14, 2014
18ae90e
NullReferenceException bugfix for null arguments
postromantic Oct 15, 2014
01592ec
optimization
postromantic Oct 15, 2014
3459eec
Merge pull request #100 from postromantic/master
sebastienros Oct 15, 2014
e495f45
map jsArguments to .NET Params in delegate
nicopon Oct 17, 2014
727bf17
test call delegate with params
nicopon Oct 17, 2014
d153a38
Merge pull request #104 from nicopon/master
sebastienros Oct 21, 2014
7456974
Updating code blocks syntax highlighting
sebastienros Oct 22, 2014
273ef77
Fixing NRE when setting properties to null
sebastienros Oct 22, 2014
9e3bfa3
Adding a unit test
sebastienros Oct 22, 2014
6da38e8
Fixing unit test
sebastienros Oct 22, 2014
f05ac22
Fixing null check
sebastienros Oct 22, 2014
341883a
Merge pull request #105 from sebastienros/bug/101
sebastienros Oct 28, 2014
b9f33a7
Some small performance improvements for JsValue.
Oct 28, 2014
a1de845
Small performance improvements for JsValue handling.
Oct 28, 2014
975de1e
Fixed strings
Oct 28, 2014
6d39231
Made JsValue's layout explicit
Oct 28, 2014
a506534
Added missing FieldOffset attribute
Oct 29, 2014
2631e51
Fixed a bug in the explicit layout
Oct 29, 2014
4a6b589
Update README.md
ala53 Oct 29, 2014
04d08c8
Merge pull request #109 from ala53/master
sebastienros Oct 29, 2014
914a3bc
Fixing random initialization
sebastienros Nov 13, 2014
20048cb
Adding a couple unit tests
sebastienros Nov 14, 2014
0e80b6c
Improving performance of lastIndexOf
sebastienros Nov 27, 2014
2ed825c
Merge pull request #118 from sebastienros/perf/lastindexof
sebastienros Nov 27, 2014
f06f1b7
Return error location with JavaScriptException.
yambaypaul Dec 11, 2014
bb2a8d7
Update README.md
thoys Dec 11, 2014
3a1b6de
Remove modification to execution context in strict mode.
yambaypaul Dec 15, 2014
a826770
#128 : fixing exception on undefined index in IndexDescriptor
albyrock87 Feb 4, 2015
b5e08d1
Merge pull request #120 from thoys/patch-1
sebastienros Feb 14, 2015
7e7c935
Merge pull request #129 from albyrock87/master
sebastienros Feb 14, 2015
28f027b
bugfix: be able to pass single number as params array
postromantic Feb 18, 2015
c344ee4
FieldOffset fix to avoid TypeLoad exception in partial trust IIS level
confirmit-horizons Feb 24, 2015
5ab0875
fix for issue 141
tormy Feb 24, 2015
41494ca
Merge pull request #140 from postromantic/fieldoffsetbug
sebastienros Feb 25, 2015
a382fac
Merge pull request #132 from postromantic/master
sebastienros Feb 25, 2015
767411d
CLR array converter
confirmit-horizons Feb 19, 2015
ff910f1
disable explicit struct layout
confirmit-horizons Mar 4, 2015
f767dda
Merge pull request #142 from tormy/master
sebastienros Mar 6, 2015
1cc1ec7
Merge pull request #146 from postromantic/arrayconverter
sebastienros Mar 6, 2015
5e2acd7
Merge pull request #150 from postromantic/master
sebastienros Mar 7, 2015
2a78cb9
Merge pull request #4 from sebastienros/master
fvaneijk Mar 7, 2015
17f8d28
adding support for nested .net types
fvaneijk Mar 8, 2015
ad0a3e3
use ordinal
fvaneijk Mar 8, 2015
a90a0d4
improvements and additional tests for nested types
fvaneijk Mar 8, 2015
cc9e8c8
Changed namespace of WithStatement to Jint.Parser.Ast, according to t…
yallie Mar 9, 2015
017c7c3
IsNaN() should return true
fvaneijk Mar 10, 2015
965473e
Merge pull request #155 from fvaneijk/newIsNaNFix
sebastienros Mar 17, 2015
de0fcd3
Cleanup.
yallie Mar 17, 2015
f261eba
Merge pull request #152 from yallie/master
sebastienros Mar 18, 2015
e6b06b7
Fixed examples
Mar 24, 2015
3d0ac63
Merge pull request #160 from ghwca/patch-1
sebastienros Mar 25, 2015
7a20b16
Merge pull request #151 from fvaneijk/nestedTypes
sebastienros Mar 25, 2015
7a19308
Fixing toFixed implementation
sebastienros Mar 29, 2015
ae86789
Added extra check before _knownConversions.TryGetValue to avoid unnec…
csabakiss Apr 29, 2015
0432834
Can call PascalCase .NET methods from JS using camelCase.
csabakiss Apr 29, 2015
12d5fac
Merge pull request #177 from csabakiss/feature/ignoreMethodCasing
sebastienros Apr 29, 2015
fd01d12
Merge pull request #119 from yambaypaul/master
sebastienros May 25, 2015
2d83c14
Using readonly fields when possible
sebastienros May 25, 2015
429566c
Adding support for params JsValue[] parameters
sebastienros May 25, 2015
22a39d1
Upgrading XUnit 2.0
sebastienros May 25, 2015
52b5d3b
Adding unit tests for ~ operator
sebastienros May 25, 2015
b24f956
Fixing formatting
sebastienros May 25, 2015
f974c30
Bumping nuget version
sebastienros May 26, 2015
f2f231c
Update ObjectWrapper.cs
May 26, 2015
2687e8f
Adding xUnit console runner for the CI
sebastienros May 26, 2015
b860180
update array sort method to allow floating point numbers to be return…
honestegg May 26, 2015
8d3cc7b
Merge pull request #182 from honestegg/array-sort
sebastienros May 27, 2015
51da882
Merge pull request #181 from genielabs/patch-1
sebastienros May 27, 2015
9da7d11
issue #183 (StaticMethods > camelCase resolution)
genemars May 27, 2015
7faad81
fix indentation
genemars May 27, 2015
660b758
fixes JavascriptParser.cs file not found in Linux
genemars May 27, 2015
88bbc37
added as/is date
npenin May 28, 2015
303e6ad
added missing AsRegexp
npenin May 28, 2015
152ba62
fixed unit tests
npenin May 29, 2015
4da70e8
Merge pull request #185 from npenin/pure-jint
sebastienros Jun 1, 2015
8f48efe
Merge pull request #184 from genielabs/case-resolve
sebastienros Jun 1, 2015
f077fe6
Implementation of Debug support
mgentile Jun 11, 2015
b7c87f1
Additional changes and unit tests
mgentile Jun 11, 2015
1db58da
Added Globals in DebugInformation
mgentile Jun 11, 2015
cf716a5
Fix formatting suggestion
mgentile Jun 17, 2015
add78e6
Merge pull request #191 from mgentile/master
sebastienros Jun 17, 2015
9fda44a
allow nullable delegate parameters to be excluded from the JS functio…
honestegg Jun 22, 2015
e6ea95d
Merge pull request #197 from honestegg/empty-argument-fix
sebastienros Jun 23, 2015
c0434ca
Support for Step Over
mgentile Jun 24, 2015
fa2838f
Merge pull request #199 from mgentile/debug_stepOverSupport
sebastienros Jun 24, 2015
55b14dc
Optimizing property access performance
sebastienros Jul 1, 2015
447bcac
Merge pull request #5 from sebastienros/master
fvaneijk Jul 4, 2015
3e95f2d
Refactoring ObjectInstance to support specialization
sebastienros Jul 8, 2015
21c9c4e
Merge pull request #6 from sebastienros/master
fvaneijk Jul 8, 2015
142197b
Add the location in the Completion object when Type is not Normal and…
Sep 1, 2015
b00c0a1
Merge pull request #220 from keikhosro/master
sebastienros Sep 2, 2015
03c1cee
Fixing multi-generic types creation
sebastienros Sep 22, 2015
83f773a
Updating version number
sebastienros Sep 22, 2015
76393f4
Fixing nuget command line build
sebastienros Sep 23, 2015
bdc51a4
Fixing Date.now rounding
sebastienros Sep 26, 2015
bc34441
Fixing assignment evaluation order
sebastienros Sep 26, 2015
fe18e77
Making ClrFunctionInstance extensible
sebastienros Sep 26, 2015
36ef0ad
Merge pull request #227 from sebastienros/bug/207
sebastienros Sep 27, 2015
e48ae5a
Fixing array index detection
sebastienros Sep 27, 2015
f9c4898
Merge pull request #230 from sebastienros/bug/228
sebastienros Sep 28, 2015
fad0e2b
Date prototype is only valid on Date object
sebastienros Sep 28, 2015
dbfa93e
Compacting JsValue fields
sebastienros Oct 16, 2015
64d63ad
Merge pull request #236 from sebastienros/perf/jsvalue
sebastienros Oct 16, 2015
ea8b55c
Using local timezone and formats for `toLocale` functions
sebastienros Oct 18, 2015
ac54327
Forcing invariant culture to ToUTCString
sebastienros Oct 18, 2015
9f13e71
Merge pull request #238 from sebastienros/localeDateFormat
sebastienros Oct 18, 2015
5788740
Adding discussion section in readme
sebastienros Oct 19, 2015
a30fd84
Adding examples for internationalization
sebastienros Oct 19, 2015
04aac0b
Updating version number
sebastienros Nov 1, 2015
df84ab4
Updating package binaries
sebastienros Nov 1, 2015
dd35d39
Typo
dalenewman Nov 7, 2015
ba44626
Merge pull request #247 from dalenewman/patch-1
sebastienros Nov 9, 2015
dc3a0ac
boxing before calling JsValue.FromObject
qnnnnez Nov 21, 2015
a3a8672
Merge pull request #250 from qnnnnez/master
sebastienros Nov 21, 2015
44afa32
Preventing multiple descriptor evaluation
sebastienros Dec 2, 2015
d911906
Adding a unit test on DateTime usage
sebastienros Jan 6, 2016
51d9256
Removing usage of char.IsWhiteSpace
sebastienros Jan 6, 2016
b6d5359
Revert "Removing usage of char.IsWhiteSpace"
sebastienros Jan 6, 2016
5f1cdf4
Treat MONGOLIAN_VOWEL_SEPARATOR as whitespace
sebastienros Jan 6, 2016
b3328f3
Merge pull request #7 from sebastienros/master
fvaneijk Jan 12, 2016
92627e5
white space fixes
fvaneijk Jan 12, 2016
4d22c4a
Merge pull request #260 from fvaneijk/whiteSpaceFixes
sebastienros Jan 12, 2016
57dc83f
add unit test for https://github.com/sebastienros/jint/pull/250
qnnnnez Jan 26, 2016
066acda
should be a.Call18, not a.Call17
qnnnnez Jan 27, 2016
789300e
do not need the assert outside
qnnnnez Jan 27, 2016
75cce95
Merge pull request #261 from qnnnnez/master
sebastienros Feb 1, 2016
8b6d179
Localized code cleanup
sebastienros Feb 9, 2016
048a889
New IObjectConverted unit test
sebastienros Feb 9, 2016
0612a7a
Renaming option's internal properties
sebastienros Feb 9, 2016
85bf11f
Caching literals
sebastienros Feb 10, 2016
97e10ac
Optimizing string conversion for integer values
sebastienros Feb 10, 2016
2c84b39
Initialize the arguments object lazily
sebastienros Feb 10, 2016
3042aa9
Supporting lazily initialized objects
sebastienros Feb 10, 2016
45dffae
Renaming ArgumentsInstance filename
sebastienros Feb 10, 2016
7c97081
Merge pull request #268 from sebastienros/perf/arguments
sebastienros Feb 10, 2016
d9469b6
Fix a error that occurs when creating an instance of value type witho…
Taritsyn Feb 18, 2016
f30e09b
Merge pull request #269 from Taritsyn/master
sebastienros Feb 18, 2016
e5ae513
Adding a UT for date ctor
sebastienros Feb 26, 2016
f1f1c85
Updating nuspec
sebastienros Feb 26, 2016
e01a337
Fixing version numbers
sebastienros Feb 29, 2016
87a59a7
Date should honor the timezone rules for daylight savings
Mar 2, 2016
a530d00
Merge pull request #276 from ioninteractive/bug-date-should-honor-tim…
sebastienros Mar 3, 2016
224eeff
Fixing RegExp mutable array
sebastienros Feb 29, 2016
2d35385
Fixing RegExp multiline support
sebastienros Mar 5, 2016
e9571db
Merge pull request #273 from sebastienros/pr/272
sebastienros Mar 6, 2016
921bb67
Fixing Date.ToISOString pre 1970
mcshaz Apr 12, 2016
54f0452
Typo
camilstaps May 11, 2016
6c21768
Fix for JSON.parse handling non-string values
jxors May 11, 2016
a21f7f9
Support JsValue.ToObject on Arguments
eamodio May 11, 2016
c10a6a1
Allow setting Nullable properties on POCO instances
Jul 22, 2016
ce81fb0
Fixing Date.prototype.setFullYear
sebastienros Jul 25, 2016
cc84dbd
Fixing build
sebastienros Jul 25, 2016
0467b62
Fixing race condition when caching literals
honestegg Jul 25, 2016
0b26a0f
Updating version
sebastienros Jul 26, 2016
d098d6e
Bumping version
sebastienros Jul 27, 2016
7c4e2be
Change char code (#328)
Sep 20, 2016
4cf1b74
Changing JsValue to a class (#324)
sebastienros Sep 20, 2016
9425253
Caching JsValue conversions (#325)
sebastienros Sep 20, 2016
90bc42e
Properly compile Lambdas when the target method is looking for a Dele…
peter-hartmann Sep 20, 2016
b0628d1
Add function prototype to DelegateWrapper (#334)
ArcanoxDragon Sep 20, 2016
269d392
Call object instance methods directly from an object (#335)
monoblaine Sep 29, 2016
cf4abb8
Adding netstandard1.3 target
sebastienros Oct 8, 2016
a7af517
Everything to xproj
sebastienros Oct 11, 2016
d36e94b
Upgrading unit tests projects
sebastienros Oct 15, 2016
56faf8a
Adding SunSpider Tests project
sebastienros Oct 15, 2016
7aee664
Fixing unit test
sebastienros Oct 16, 2016
ace5621
Updating package version
sebastienros Oct 16, 2016
5f23e58
Adding Nuget badge
sebastienros Oct 16, 2016
1679a59
Updating Gitter badge
sebastienros Oct 16, 2016
541fc3b
Adding build scripts
sebastienros Oct 16, 2016
ccfe8b8
Adding appveyor badge
sebastienros Oct 16, 2016
01154f7
Sign an Jint version 2.10 with a Strong Name (#339)
Taritsyn Oct 16, 2016
69fe7fa
Updating version
sebastienros Oct 16, 2016
03a2d0a
Updating nuget version
sebastienros Oct 17, 2016
9371178
Replace `dependencies` section by `frameworkAssemblies` in `net45` ta…
Taritsyn Oct 17, 2016
c8d682a
Bumping version
sebastienros Oct 17, 2016
2f9985d
Adding nuget deployment script
sebastienros Oct 17, 2016
0212f28
Removing nuget binaries
sebastienros Oct 17, 2016
7d52d6c
Improve deploynuget
sebastienros Oct 17, 2016
c4c80a3
LFixed issue where the line number for exceptions in nested function …
andreykorolev Oct 31, 2016
1574092
Updated readme.md
sebastienros Nov 10, 2016
7b9a8c0
Fixed formatting
sebastienros Nov 10, 2016
89c3c99
Improve JSON.parse and JSON.stringify performance (#358)
vicancy Dec 28, 2016
51873e1
Bumping version number
sebastienros Dec 28, 2016
f370637
Ignoring javascript files for language detection
sebastienros Jan 12, 2017
e0c2e2d
Adding type reference sample
sebastienros Feb 9, 2017
c3284a5
Fixing global regex literals cache
sebastienros Feb 16, 2017
13242d3
Running tests on CI
sebastienros Feb 16, 2017
0a5159a
Running tests only on netcoreapp
sebastienros Feb 16, 2017
2367a26
Comparing Object wrappers (#367)
sebastienros Feb 16, 2017
458698d
Fix bug in number to string conversion. (#369)
RhinoDevel Mar 16, 2017
c521b59
Added support for catching exceptions from CLR code (#326)
mgentile Apr 10, 2017
4dc78fd
Fixing for-in support on Strings (#372)
sebastienros Apr 13, 2017
fb2ea32
Fixed concurrency issue with introducing new TypeMapper to Engine.Typ…
maximburyak Apr 25, 2017
0c0fa95
Catching exceptions optionally (#374)
sebastienros May 5, 2017
541909a
Implemented escape function on global object. (#382)
girishjjain May 24, 2017
a216ad3
Fix for CLR exceptions inside TypeReference instances not being caugh…
SammyROCK Jun 22, 2017
4c13c86
Fixes Multiple Indexer and DefaultTypeConverter TryConvert (#390)
albyrock87 Jun 22, 2017
f6115b2
wip
sebastienros Apr 13, 2017
950959d
Updating build pipeline
sebastienros Aug 4, 2017
557f069
Fixing appveyor
sebastienros Aug 4, 2017
0426425
Fixing test project filenames
sebastienros Aug 4, 2017
43645c0
Updating version number
sebastienros Aug 4, 2017
d29a3ed
Clearing version number
sebastienros Aug 4, 2017
110f32a
Add MyGet badge
sebastienros Aug 4, 2017
2bb19f5
Fix description
sebastienros Aug 4, 2017
e7741ed
Fix myget badge
sebastienros Aug 4, 2017
2883f2d
Implemented unescape function on global object. (#385)
girishjjain Aug 4, 2017
340f0f4
Update appveyor.yml
sebastienros Aug 10, 2017
caef6f2
Better error from scripts. (#408)
ayende Aug 25, 2017
4223c30
Allow host to handle unknown references (#410)
ayende Aug 26, 2017
fe76ca7
Merge pull request #415 from sebastienros/dev
sebastienros Aug 30, 2017
f04109e
Implement TypeReference.HasInstance (#422)
tylerjwatson Oct 1, 2017
88adad4
Fix build on clean environment (#425)
dkornaus Oct 11, 2017
03e614b
Generating file version
sebastienros Oct 17, 2017
0fee3d5
Targetting netstandard 2.0 also (#427)
sebastienros Oct 18, 2017
7564dee
Fix class name typo (#428)
jokin Nov 3, 2017
561d8c3
Fixing Date.getHours (#432)
sebastienros Nov 3, 2017
b24306e
Supporting big hex literal (#435)
sebastienros Nov 4, 2017
15807f0
Adding String.padStart and String.padEnd #429 (#434)
WestDiscGolf Nov 10, 2017
b2860eb
Merge branch 'dev'
sebastienros Nov 27, 2017
366cce9
Removing unnecessary dependencies
sebastienros Nov 27, 2017
e6b2205
Removing unnecessary dependencies
sebastienros Nov 27, 2017
0219295
Merge branch 'dev'
sebastienros Nov 27, 2017
969a84b
Update appveyor.yml
sebastienros May 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Jint.Tests/* linguist-vendored
Jint.Tests.Ecma/* linguist-vendored
Jint.Tests.CommonScripts/* linguist-vendored
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ build/
*_p.c
*.ilk
*.meta
*.nupkg
*.obj
*.pch
*.pdb
Expand Down Expand Up @@ -101,6 +102,7 @@ publish/
# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
packages/
.nuget/

# Windows Azure Build Output
csx
Expand Down Expand Up @@ -151,3 +153,8 @@ $RECYCLE.BIN/

# Mac crap
.DS_Store
Jint.sln.ide/*
/Jint.sln.GhostDoc.xml
.vs
project.lock.json
.build
6 changes: 0 additions & 6 deletions .nuget/NuGet.Config

This file was deleted.

Binary file removed .nuget/NuGet.exe
Binary file not shown.
136 changes: 0 additions & 136 deletions .nuget/NuGet.targets

This file was deleted.

18 changes: 18 additions & 0 deletions Common.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<Copyright>Sebastien Ros</Copyright>
<Authors>Sebastien Ros</Authors>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DebugType>portable</DebugType>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>true</GenerateAssemblyFileVersionAttribute>
</PropertyGroup>

</Project>
6 changes: 0 additions & 6 deletions Jint.Benchmark/App.config

This file was deleted.

106 changes: 19 additions & 87 deletions Jint.Benchmark/Jint.Benchmark.csproj
Original file line number Diff line number Diff line change
@@ -1,93 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{8922A952-4F82-4A97-B41C-C0A9932BFFA8}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Jint.Benchmark</RootNamespace>
<TargetFramework>net45</TargetFramework>
<AssemblyName>Jint.Benchmark</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<OutputType>Exe</OutputType>
<PackageId>Jint.Benchmark</PackageId>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
</PropertyGroup>
<ItemGroup>
<Reference Include="FSharp.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\FSharp.Core.4.0.0\lib\FSharp.Core.dll</HintPath>
</Reference>
<Reference Include="IronJS">
<HintPath>..\packages\IronJS.Core.0.2.0.1\lib\net40\IronJS.dll</HintPath>
</Reference>
<Reference Include="Jurassic, Version=2.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Jurassic.2.2.0\lib\Jurassic.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Dynamic">
<HintPath>..\packages\IronJS.Core.0.2.0.1\lib\net40\Microsoft.Dynamic.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Scripting">
<HintPath>..\packages\IronJS.Core.0.2.0.1\lib\net40\Microsoft.Scripting.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Scripting.Core">
<HintPath>..\packages\IronJS.Core.0.2.0.1\lib\net40\Microsoft.Scripting.Core.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Scripting.ExtensionAttribute">
<HintPath>..\packages\IronJS.Core.0.2.0.1\lib\net40\Microsoft.Scripting.ExtensionAttribute.dll</HintPath>
</Reference>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<ProjectReference Include="..\Jint\Jint.csproj" />
<PackageReference Include="Jurassic2" Version="2.2.1" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Jint\Jint.csproj">
<Project>{678738da-f723-4920-b9e5-cad667104bda}</Project>
<Name>Jint</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

</Project>
48 changes: 24 additions & 24 deletions Jint.Benchmark/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,46 +14,46 @@ class Program
if(o.Blah != 'bar42.0001') throw TypeError;

function fib(n){
if(n<2) {
return n;
if(n<2) {
return n;
}
return fib(n-1) + fib(n-2);

return fib(n-1) + fib(n-2);
}

if(fib(3) != 2) throw TypeError;
";

static void Main()
{
const bool runIronJs = true;
//const bool runIronJs = true;
const bool runJint = true;
const bool runJurassic = true;

const int iterations = 100;
const int iterations = 1000;
const bool reuseEngine = false;

var watch = new Stopwatch();


if (runIronJs)
{
IronJS.Hosting.CSharp.Context ironjs;
ironjs = new IronJS.Hosting.CSharp.Context();
ironjs.Execute(Script);
watch.Restart();
for (var i = 0; i < iterations; i++)
{
if (!reuseEngine)
{
ironjs = new IronJS.Hosting.CSharp.Context();
}

ironjs.Execute(Script);
}

Console.WriteLine("IronJs: {0} iterations in {1} ms", iterations, watch.ElapsedMilliseconds);
}
//if (runIronJs)
//{
// IronJS.Hosting.CSharp.Context ironjs;
// ironjs = new IronJS.Hosting.CSharp.Context();
// ironjs.Execute(Script);
// watch.Restart();
// for (var i = 0; i < iterations; i++)
// {
// if (!reuseEngine)
// {
// ironjs = new IronJS.Hosting.CSharp.Context();
// }

// ironjs.Execute(Script);
// }

// Console.WriteLine("IronJs: {0} iterations in {1} ms", iterations, watch.ElapsedMilliseconds);
//}

if (runJint)
{
Expand Down
7 changes: 0 additions & 7 deletions Jint.Benchmark/packages.config

This file was deleted.

Loading