Hi,

I've just started using JerryScript, it looks great! I have a question around Javascript classes though...

The following executes as expected when running it with jerry_eval...


```
class Foo {
   bar() {
     print('Hello World!');
   }
};

var foo = new Foo();
foo.bar();
```


However, when calling jerry_eval to create the class......

```
class Foo {
   bar() {
     print('Hello World!');
   }
};
```


...and then calling jerry_eval to use the class fails...

```
var foo = new Foo();
foo.bar();
```


Perhaps this is a scope thing? or deliberately designed this way to minimise memory usage?

Thanks in advance!




Javascript Classes...when using multiple calls to jerry_eval
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : Javascript Classes...when using multiple calls to jerry_eval
Issue date:

--- start body ---
Hi,

I've just started using JerryScript, it looks great! I have a question around Javascript classes though...

The following executes as expected when running it with jerry_eval...


```
class Foo {
   bar() {
     print('Hello World!');
   }
};

var foo = new Foo();
foo.bar();
```


However, when calling jerry_eval to create the class......

```
class Foo {
   bar() {
     print('Hello World!');
   }
};
```


...and then calling jerry_eval to use the class fails...

```
var foo = new Foo();
foo.bar();
```


Perhaps this is a scope thing? or deliberately designed this way to minimise memory usage?

Thanks in advance!




--- end body ---
